Skip to content
Guides

Convert PDF to RTF

Overview

RTF is a popular text format that can retain the format and style data of the text, and it is convenient for most text readers to read and write. Integrate ComPDFKit Conversion SDK to conevert PDFs to RTF files now.

Sample

This sample demonstrates how to convert PDFs to RTF files.

python
options = ConvertOptions()
error_code = PDFToOffice.start_pdf_to_rtf("sample.pdf", "", "path/to/output", options, callback)

if error_code == ErrorCode.Success:
    print("Convert success")