ExportPageRTF
Extraction et conversion de texte
Description
Extrait une page unique vers un document RTF autonome avec sa propre table de polices et de couleurs, selon le même modèle de texte structuré que l’export RTF au niveau document
Syntaxe
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);Paramètres
| Page | Numéro de page à base 1 ; une valeur hors de 1..PageCount renvoie une chaîne vide |
|---|---|
| Options | Combinaison de PDF_RTF_DETECT_HEADINGS (1), PDF_RTF_PRESERVE_STYLES (2) et PDF_RTF_INCLUDE_IMAGES (4), ou PDF_RTF_DEFAULT (7) ; tout autre bit définit PDFLIB_ERROR_MARKDOWN_EXPORT_INVALID |
Valeurs de retour
| RTF | Le document RTF complet de la page unique |
|---|---|
| Empty | Le numéro de page est hors plage ou l’extraction a échoué |