ExportPageRTF
Text extraction and conversion
Description
Extracts a single page into a self-contained RTF document with its own font and colour table, using the same structured text model as the document-level RTF export
Syntax
Delphi
Function TPDFlib.ExportPageRTF(Page, Options: Integer): WideString;ActiveX
Function PDFlib::ExportPageRTF(Page As Long, Options As Long) As StringDLL
const wchar_t* DLExportPageRTF(int InstanceID, int Page, int Options);
const char* DLExportPageRTFA(int InstanceID, int Page, int Options);Parameters
| Page | One-based page number; a value outside 1..PageCount returns an empty string |
|---|---|
| Options | A combination of PDF_RTF_DETECT_HEADINGS (1), PDF_RTF_PRESERVE_STYLES (2) and PDF_RTF_INCLUDE_IMAGES (4), or PDF_RTF_DEFAULT (7); any other bit sets PDFLIB_ERROR_MARKDOWN_EXPORT_INVALID |
Return values
| RTF | The complete single-page RTF document |
|---|---|
| Empty | The page number is out of range or extraction failed |