ExportPageRTF

文字擷取與轉換

描述

把單一頁面擷取為自給自足的 RTF 文件,帶獨立的字型表與顏色表,採用與文件層級 RTF 匯出相同的結構化文字模型

語法

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);

參數

Page1 起算的頁碼;超出 1..PageCount 的值會傳回空字串
OptionsPDF_RTF_DETECT_HEADINGS(1)、PDF_RTF_PRESERVE_STYLES(2)與 PDF_RTF_INCLUDE_IMAGES(4)的組合,或 PDF_RTF_DEFAULT(7);其他位元會設定 PDFLIB_ERROR_MARKDOWN_EXPORT_INVALID

傳回值

RTF完整的單頁 RTF 文件
Empty頁碼超出範圍或擷取失敗

另請參閱

ExportDocumentRTF, ExportPageMarkdown