int32_t __stdcall pdfGetDrawDirection(PPDF IPDF);
BOOL32 __stdcall pdfSetDrawDirection(PPDF IPDF, int32_t Direction);
function pdfGetDrawDirection(const IPDF: PPDF): Integer; stdcall;
function pdfSetDrawDirection(const IPDF: PPDF; Direction: Integer): LongBool; stdcall;
Purpose. Set/get a document-global "draw direction" value.
Description. Verified write-only no-op, same class as pdfSetOpacity above. Stores Direction into FDrawDirection (default 0); FDrawDirection is read only by this getter — no shape-drawing, text-writing, or path-construction code in the entire codebase consults it. Every shape/path API in E01 draws in whatever direction its own explicit geometry implies, unaffected by this setting.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
Direction | Stored verbatim; no defined enumeration is enforced. |
Return value. pdfSetDrawDirection: True if IPDF is valid. pdfGetDrawDirection: the last stored value, or 0 if never set / IPDF invalid.
See also. pdfSetIconColor (a sibling no-op, for contrast with the real pdfSetGStateFlags below).
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Setters
pdfSetDrawDirection
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.