ExportDocumentHTML

Text, images, extraction, HTML

תיאור

Exports a selected page range into one standalone HTML5 document with one positioned page section per selected page

תחביר

Delphi

Function TPDFlib.ExportDocumentHTML(Const PageRange: WideString;
  Options: Integer): WideString;

ActiveX

Function PDFlib::ExportDocumentHTML(PageRange As String,
  Options As Long) As String

DLL

const wchar_t* DLExportDocumentHTML(int InstanceID,
  const wchar_t* PageRange, int Options);
const char* DLExportDocumentHTMLA(int InstanceID,
  const char* PageRange, int Options);

פרמטרים

PageRangeA one-based range such as 1-3,7, or an empty string for every page; explicit page order is preserved
Optionsאפס בוחר ב-PDF_HTML_DEFAULT; אחרת משלבים את דגלי הכללת התמונות, הקישורים והטקסט המתועדים ב-ExportPageHTML

ערכי החזרה

מחזירה מסמך HTML5 עצמאי לחלוטין, או מחרוזת ריקה כאשר האימות, הביטול או החילוץ נכשלים

הערות

רק משפך העמוד הנוכחי ונתוני התמונה המקודדים שלו נשמרים בזמן הרכבת הפלט, ולכן זיכרון החילוץ עוקב אחר העמוד הנבחר המורכב ביותר ולא אחר מספר העמודים

Internal link annotations target stable #page-N anchors inside the generated documentThe selected page is restored before the call returns

ההתקדמות והביטול השיתופי משתמשים במחזור החיים הרגיל של פעולת המסמך

LastErrorCode is 112 for invalid range or options and 516 when export fails

ראה גם

ExportPageHTML, ExtractStructuredDocument, RenderDocumentToFile