CompactDocumentMemory
Memory management, temporary files, performance
תיאור
Re-encodes the selected document and moves large serialized indirect objects into the temporary file configured by SetTempFile
תחביר
Delphi
Function TPDFlib.CompactDocumentMemory: Integer;ערכים מוחזרים
| 1 | המסמך נדחס בהצלחה |
|---|---|
| 0 | לא הוגדר קובץ זמני, או שלא ניתן היה לממש את האובייקט או לבצע לו serialization |
הערות
Call SetTempFile before this method and optionally use SetTempFileQuota to bound disk useSpool entries are indexed by object number and generation for logarithmic lookup and remain readable after the write handle closes
אם המכסה הושגה, האובייקטים המושפעים נשארים בזיכרון והשיטה עדיין יכולה להצליח