C
int32_t __stdcall pdfGetPageLayout(PPDF IPDF);
BOOL32 __stdcall pdfSetPageLayout(PPDF IPDF, int32_t Layout);
int32_t __stdcall pdfGetPageMode(PPDF IPDF);
BOOL32 __stdcall pdfSetPageMode(PPDF IPDF, int32_t Mode);
Delphi
function pdfGetPageLayout(const IPDF: PPDF): Integer; stdcall;
function pdfSetPageLayout(const IPDF: PPDF; Layout: Integer): LongBool; stdcall;
function pdfGetPageMode(const IPDF: PPDF): Integer; stdcall;
function pdfSetPageMode(const IPDF: PPDF; Mode: Integer): LongBool; stdcall;
Purpose. Get/set the document's /PageLayout (SinglePage/OneColumn/ TwoColumnLeft/etc — initial page-spread display) and /PageMode (UseNone/UseOutlines/UseThumbs/FullScreen/etc — initial UI panel state) catalog entries.
Return value. Getters: the current value; 0 if IPDF invalid. Setters: True if IPDF valid.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetPageLayout(IntPtr IPDF);
Area
Core SDK
Category
Getters
Exported names
pdfGetPageLayout
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.