SaveMarkdownToFile
Text, extraction, Markdown, files
תיאור
Writes semantic Markdown for a PDF page range directly to a UTF-8 file
תחביר
Delphi
Function TPDFlib.SaveMarkdownToFile(Const PageRange: WideString;
Options: Integer; Const FileName: WideString): Integer;ActiveX
Function PDFlib::SaveMarkdownToFile(PageRange As String,
Options As Long, FileName As String) As LongDLL
int DLSaveMarkdownToFile(int InstanceID, const wchar_t* PageRange,
int Options, const wchar_t* FileName);
int DLSaveMarkdownToFileA(int InstanceID, const char* PageRange,
int Options, const char* FileName);פרמטרים
| PageRange | טווח דפים 1-based, או מחרוזת ריקה עבור כל הדפים |
|---|---|
| Options | מסכת האפשרויות המתועדת ב-ExportPageMarkdown |
| FileName | נתיב קובץ היעד |
ערכי החזרה
מחזיר את מספר העמודים שנכתבו, או אפס כאשר אימות, חילוץ או כתיבת הקובץ נכשלים
הערות
קובץ הפלט הוא UTF-8 ללא סימן byte-order ונכתב עמוד אחד בכל פעם
LastErrorCode is 113 for invalid arguments and 517 for extraction or file failures
ראה גם
SaveMarkdownToStream, ExportDocumentMarkdown, SavePageRangeTextToFile