PDFium Delphi Component Docs

מתודת SaveAsObjectStream

Component: TPdf  ·  Unit: PDFium
כותב עותק PDF 1.5+ קומפקטי באמצעות זרמי אובייקטים מוגבלים וזרם xref מלא

Syntax

function SaveAsObjectStream(Stream: TStream; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown; MaxObjectsPerStream: Integer = 100; MaxDecodedBytesPerStream: Integer = 65536): Boolean;

function SaveAsObjectStream(const FileName: string; Option: TSaveOption = saNone; PdfVersion: TPdfVersion = pvUnknown; MaxObjectsPerStream: Integer = 100; MaxDecodedBytesPerStream: Integer = 65536): Boolean;

StreamTStream that receives the complete object-stream PDF
FileNameOutput path replaced only after a sibling temporary file succeeds
OptionNormal save option or saRemoveSecurity; saIncremental is rejected
PdfVersionOutput version from PDF 1.5 upward, or pvUnknown to preserve or upgrade the current version
MaxObjectsPerStreamMaximum object members per ObjStm group; the default is 100
MaxDecodedBytesPerStreamMaximum decoded member payload per group; the default is 65536 bytes

Return Value

Returns True when the object-stream output was completed successfully

Description

המתודה משתמשת תחילה במסלול השמירה הרגיל של PDFium כמקור סמנטי, ואז פותרת את רוויזיית ה-classic, hybrid או xref-stream הפעילה

איברי object-stream קיימים ממומשים לפני שהפניות ממוספרות מחדש לסדר מקומי-עמוד

אובייקטים שאינם זרם מתאימים מקובצים לפי ספירת איברים וגודל מטען מפוענח, ואז נדחסים ב-Flate רק כאשר דחיסה מקטינה את הקבוצה

הקטלוג, אובייקטי הזרם, מילוני חתימה, אורכי זרם עקיפים וערכים גדולים מדי נותרים ניתנים לפנייה ישירה

זרם xref טהור משתמש ברוחבי שדות אדפטיביים ורשומות סוג 2 לכל איבר דחוס

Constraints

Example

// Balance compact output with bounded random-access decompression
Pdf.SaveAsObjectStream('report-compact.pdf', saNoIncremental, pv17, 100, 65536);

See Also

SaveAs, SaveAsLinearized