API referenceCore SDK

pdfIsLinearized

Report whether the document is linearized ("fast web view").

C
int32_t __stdcall pdfIsLinearized(PPDF IPDF);
Delphi
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)

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

Core

Exported names

pdfIsLinearized

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.