API referenceGraphics

pdfSetDrawDirection

Set/get a document-global "draw direction" value.

C
int32_t __stdcall pdfGetDrawDirection(PPDF IPDF);
BOOL32 __stdcall pdfSetDrawDirection(PPDF IPDF, int32_t Direction);
Delphi
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.

ParameterDescription
IPDFDocument handle.
DirectionStored 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)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Graphics
Category

Setters

Exported names

pdfSetDrawDirection

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.