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 String

DLL

const wchar_t* DLExportPageRTF(int InstanceID, int Page, int Options);
const char* DLExportPageRTFA(int InstanceID, int Page, int Options);

Parameters

PageOne-based page number; a value outside 1..PageCount returns an empty string
OptionsA 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

RTFThe complete single-page RTF document
EmptyThe page number is out of range or extraction failed

See also

ExportDocumentRTF, ExportPageMarkdown