pdfIsLinearized
Report whether the document is linearized ("fast web view").
int32_t __stdcall pdfIsLinearized(PPDF IPDF);
function pdfIsLinearized(const IPDF: PPDF): Integer; stdcall;
Purpose. Report whether the document is linearized ("fast web view").
Description. Known limitation: this engine never produces linearized output, so this always returns 0 for any valid document handle — per an explicit source comment: "LumasPDF never linearizes its output, so an authored doc is always 0. (import-side /Linearized detection is a documented follow-up.)" — meaning even a linearized *imported* PDF is not detected as such through this call either, pending that follow-up.
Return value. 0 for any valid, currently-open document (never linearized, and import-side detection is not yet implemented); -1 if IPDF is invalid.
C# (P/Invoke)
public static extern int pdfIsLinearized(IntPtr IPDF);
Core
pdfIsLinearized
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.