พร็อพเพอร์ตี้ THotPDF.LinearizeOutput

คุมว่าจะเขียนเอกสารที่เพิ่งสร้างใหม่เป็น layout แบบ linearized ที่เรียงตามลำดับ dependency เพื่อแสดงหน้าแรกเร็วบน transport แบบ byte range ของ HTTP หรือไม่

การประกาศ

// Delphi
property LinearizeOutput: Boolean;

// C++Builder
__property bool LinearizeOutput;

ค่าเริ่มต้น

False

ผังเอาต์พุต

เมื่อเปิดก่อน BeginDoc และ EndDoc HotPDF จะรัน layout pass ที่มีขอบเขตแล้วเขียน destination stream ลงตรง ๆ ตามลำดับ linearized

ความเข้ากันได้และข้อจำกัด

ตัวอย่าง 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 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();

API ที่เกี่ยวข้อง