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;
| Stream | TStream that receives the complete object-stream PDF |
| FileName | Output path replaced only after a sibling temporary file succeeds |
| Option | Normal save option or saRemoveSecurity; saIncremental is rejected |
| PdfVersion | Output version from PDF 1.5 upward, or pvUnknown to preserve or upgrade the current version |
| MaxObjectsPerStream | Maximum object members per ObjStm group; the default is 100 |
| MaxDecodedBytesPerStream | Maximum decoded member payload per group; the default is 65536 bytes |
True when the object-stream output was completed successfullyהמתודה משתמשת תחילה במסלול השמירה הרגיל של PDFium כמקור סמנטי, ואז פותרת את רוויזיית ה-classic, hybrid או xref-stream הפעילה
איברי object-stream קיימים ממומשים לפני שהפניות ממוספרות מחדש לסדר מקומי-עמוד
אובייקטים שאינם זרם מתאימים מקובצים לפי ספירת איברים וגודל מטען מפוענח, ואז נדחסים ב-Flate רק כאשר דחיסה מקטינה את הקבוצה
הקטלוג, אובייקטי הזרם, מילוני חתימה, אורכי זרם עקיפים וערכים גדולים מדי נותרים ניתנים לפנייה ישירה
זרם xref טהור משתמש ברוחבי שדות אדפטיביים ורשומות סוג 2 לכל איבר דחוס
saIncremental is not supported and existing digital signatures become invalidsaRemoveSecurity because object renumbering changes object-level encryption keys
// Balance compact output with bounded random-access decompression
Pdf.SaveAsObjectStream('report-compact.pdf', saNoIncremental, pv17, 100, 65536);