LinearizeFile
מניפולציה של מסמכים, פונקציות שונות
תיאור
מבצעת לינאריזציה לקובץ ה-PDF שצוין כדי לאפשר תצוגה מהירה באינטרנט
תחביר
Delphi
Function TPDFlib.LinearizeFile(Const InputFileName, Password, OutputFileName: WideString; Options: Integer): Integer;
ActiveX
Function PDFlib::LinearizeFile(InputFileName As String, Password As String, OutputFileName As String, Options As Long) As Long
DLL
int DLLinearizeFile(int InstanceID, const wchar_t * InputFileName, const wchar_t * Password, const wchar_t * OutputFileName, int Options);
התנהגות
מקטע העמוד הראשון כולל מילוני הערות ואת המראים, הפעולות והמשאבים הנגישים מהם. סידור האובייקטים משתמש בעבודה יציבה של O(n log n), וגרפי אובייקטים קשורים בעומק אינם צורכים מסגרת קריאה אחת לכל אובייקט נגיש
Set PDF_LINEARIZE_OBJECT_STREAMS in Options for PDF 1.5 or later input to pack eligible second-section non-stream objects into bounded object streams and encode their type 2 entries in a compressed main xref stream. The first-page xref table remains directly readable so initial display does not depend on decoding an object stream. Encrypted input keeps the direct-object layout
InputFileName ו-OutputFileName עשויים לזהות את אותו קובץ. את בייטי המקור שומרים לפני שהיעד מוחלף
פרמטרים
| InputFileName | הנתיב ושם הקובץ של קובץ ה-PDF של הקלט להתמרה |
|---|---|
| Password | סיסמה אופציונלית לפתיחת ה-PDF הנכנס אם הוא מוצפן |
| OutputFileName | הנתיב ושם הקובץ של ה-PDF הליניארי שיש ליצור |
| Options | Zero for direct objects and traditional xref tables, or PDF_LINEARIZE_OBJECT_STREAMS to request object stream packing with a compressed main xref stream |
ערכי החזרה
| 1 | Success |
|---|---|
| 2 קובץ ה-PDF הנכנס לא נמצא 3 לא ניתן לקרוא את קובץ ה-PDF הנכנס סיסמת ה-PDF הנכנס שגויה 4 5 לא ניתן היה לכתוב את קובץ הפלט |