THotPDF.LinearizeOutput 屬性

控制是否以依相依性排序的線性化版面配置寫入新產生的文件,以透過 HTTP 位元組範圍傳輸實現快速首頁顯示

宣告

// Delphi
property LinearizeOutput: Boolean;

// C++Builder
__property bool LinearizeOutput;

預設值

False

輸出版面配置

在 BeginDoc 與 EndDoc 之前啟用時,HotPDF 會執行有界的版面配置階段,然後以線性化順序直接寫入目的地串流

相容性與限制

Delphi 範例

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 範例

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();

相關 API