SaveDOCXToFile
Document conversion, extraction, DOCX, files
תיאור
Converts a PDF page range into an editable DOCX file containing native paragraphs, headings, lists, tables, styles, page breaks, and optional images
תחביר
Delphi
Function TPDFlib.SaveDOCXToFile(Const PageRange: WideString;
Options: Integer; Const FileName: WideString): Integer;ActiveX
Function PDFlib::SaveDOCXToFile(PageRange As String,
Options As Long, FileName As String) As LongDLL
int DLSaveDOCXToFile(int InstanceID, const wchar_t* PageRange,
int Options, const wchar_t* FileName);
int DLSaveDOCXToFileA(int InstanceID, const char* PageRange,
int Options, const char* FileName);פרמטרים
| PageRange | טווח דפים 1-based, או מחרוזת ריקה עבור כל הדפים |
|---|---|
| Options | The option mask documented by SaveDOCXToStream |
| FileName | נתיב קובץ ה-DOCX של היעד |
ערכי החזרה
מחזיר את מספר העמודים שהומרו, או אפס כאשר אימות, חילוץ, אריזה או כתיבת קובץ נכשלים
הערות
הקובץ הוא חבילת WordprocessingML סטנדרטית ואינו דורש אוטומציה של Office או תהליך המרה חיצוני
Images are written page by page and the selected PDF page is restored before the call returnsLastErrorCode is 114 for invalid arguments and 518 for extraction, packaging, or file failures