THotPDF.LinearizeOutput Property

Controls whether a newly generated document is written in a dependency-ordered linearized layout for fast first-page display over an HTTP byte-range transport

Declarations

// Delphi
property LinearizeOutput: Boolean;

// C++Builder
__property bool LinearizeOutput;

Default

False

Output layout

When enabled before BeginDoc and EndDoc, HotPDF performs a bounded layout pass and then writes the destination stream directly in linearized order

Compatibility and limits

Delphi example

PDF := THotPDF.Create(nil);
try
  PDF.FileName := 'fast-view.pdf';
  PDF.Version := pdf17;
  PDF.LinearizeOutput := True;
  PDF.BeginDoc;
  PDF.Canvas.TextOut(72, 72, 'First page');
  PDF.EndDoc;
finally
  PDF.Free;
end;

C++Builder example

std::unique_ptr<THotPDF> pdf(new THotPDF(nullptr));
pdf->FileName = L"fast-view.pdf";
pdf->Version = pdf17;
pdf->LinearizeOutput = true;
pdf->BeginDoc();
pdf->Canvas->TextOut(72, 72, L"First page");
pdf->EndDoc();

Related APIs