|
Determines the PDF file compression.
type
THPDFCompressionMethod = (cmNone, cmFlateDecode);
Delphi 구문:
property Compression: THPDFCompressionMethod;
C++ 구문:
__property THPDFCompressionMethod Compression;
설명
PDF file compression을 get 또는 set하려면 Compression을 사용하십시오. Compression은 다음 값 중 하나입니다
Value Meaning
cmNone PDF file not compressed.
cmFlateDecode PDF file encoded using the deflate compression method.
Stacking further size reductions
Compression은 page content / font / image stream의 FlateDecode encoding을 제어합니다. PDF 1.5+ output에서 추가 PDF-level structure saving을 얻으려면 UseXRefStream(textual cross-reference table을 compressed /Type /XRef stream으로 대체) 및 UseObjectStreams(small indirect dictionary를 /Type /ObjStm container로 pack, ISO 32000-1 7.5.7)와 함께 사용하십시오. 실제 multi-page document는 일반적으로 FlateDecode-compressed stream 위에 추가로 20-40% size reduction을 얻습니다
Code Example
HPDF := THotPDF.Create( nil );
try
HPDF.FileName := 'c:\Output.pdf';
HPDF.BeginDoc; // Start PDF document creation
HPDF.CurrentPage.TextOut( 100, 100, 0, 'Hello World!' );
HPDF.EndDoc; // Finish and save PDF document
finally
HPDF.Free;
end;
|