Skip to content
ComPDF
DemoFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

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 ComPDF Conversion SDK to convert PDFs to RTF files now.

Sample

This sample demonstrates how to convert from a PDF to RTF file.

kotlin
val rtfOptions = RtfOptions()
val error = ComPDFKitConverter.startPDFToRtf("rtf.pdf", "", "output.rtf", rtfOptions)