ExportDocumentHTML
Text, images, extraction, HTML
Opis
Exportuje vybraný rozsah stránok do jedného samostatného HTML5 dokumentu s jednou poziciovanou sekciou stránky na každú vybranú stránku
Syntax
Delphi
Function TPDFlib.ExportDocumentHTML(Const PageRange: WideString;
Options: Integer): WideString;ActiveX
Function PDFlib::ExportDocumentHTML(PageRange As String,
Options As Long) As StringDLL
const wchar_t* DLExportDocumentHTML(int InstanceID,
const wchar_t* PageRange, int Options);
const char* DLExportDocumentHTMLA(int InstanceID,
const char* PageRange, int Options);Parameters
| PageRange | A one-based range such as 1-3,7, or an empty string for every page; explicit page order is preserved |
|---|---|
| Options | Zero selects PDF_HTML_DEFAULT; otherwise combine the image, link, and text inclusion flags documented by ExportPageHTML |
Return values
Vráti jeden sebestačný HTML5 dokument, alebo prázdny reťazec, keď validácia, zrušenie alebo extrakcia zlyhá
Poznámky
Kým sa výstup skladá, uchováva sa len funnel aktuálnej stránky a jej zakódované obrazové dáta, takže extrakčná pamäť sleduje najkomplexnejšiu vybranú stránku, nie počet stránok
Internal link annotations target stable #page-N anchors inside the generated documentThe selected page is restored before the call returns
Priebeh a kooperatívne zrušenie používajú bežný životný cyklus operácie nad dokumentom
LastErrorCode is 112 for invalid range or options and 516 when export fails
Pozri tiež
ExportPageHTML, ExtractStructuredDocument, RenderDocumentToFile