API referenceCore SDK

pdfGetInOrientation

Query properties of the currently open import file — a

C
int32_t __stdcall pdfGetInIsCollection(PPDF IPDF);
int32_t __stdcall pdfGetInIsTaggedPDF(PPDF IPDF);
BOOL32 __stdcall pdfGetInRepairMode(PPDF IPDF);
int32_t __stdcall pdfGetInOrientation(PPDF IPDF, int32_t PageNum);
int32_t __stdcall pdfGetInPageCount(PPDF IPDF);
Delphi
function pdfGetInIsCollection(const IPDF: PPDF): Integer; stdcall;
function pdfGetInIsTaggedPDF(const IPDF: PPDF): Integer; stdcall;
function pdfGetInRepairMode(const IPDF: PPDF): LongBool; stdcall;
function pdfGetInOrientation(const IPDF: PPDF; PageNum: Integer): Integer; stdcall;
function pdfGetInPageCount(const IPDF: PPDF): Integer; stdcall;

Purpose. Query properties of the currently open import file — a cluster of pdfGetIn* getters supplementing the /Info-focused set already covered in Document Info & Structure Tree.

Description. pdfGetInIsCollection/pdfGetInIsTaggedPDF/ pdfGetInPageCount all fail with the distinct NO_IMPORT_ERR sentinel when no import file is open (the same documented DIFF pattern as pdfGetInPDFVersion above); pdfGetInRepairMode/pdfGetInOrientation do not follow this convention — they simply return a default/0 value without the distinct sentinel if no import file is open, an inconsistency across this otherwise-uniform pdfGetIn* family worth being aware of when distinguishing "no import file" from "import file open but property is false/zero."

Parameters.

ParameterDescription
IPDFDocument handle (with an open import file).
PageNum*(Orientation only)* 1-based page within the import source.

Return value. pdfGetInIsCollection/pdfGetInIsTaggedPDF/ pdfGetInPageCount: the value, or NO_IMPORT_ERR if no import file is open. pdfGetInRepairMode: True if the import parser had to repair-mode-load the source file (a real signal of a malformed input PDF). pdfGetInOrientation: the page's rotation in degrees; 0 if IPDF invalid or PageNum out of range.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetInOrientation(IntPtr IPDF, int PageNum);
Area
Core SDK
Category

Getters

Exported names

pdfGetInOrientation

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.