iOS
ComPDFKit Conversion SDK
Guides

Convert PDF Documents to RTF Documents  

 

// Get the path of the PDF file.
NSString *pdfPath = @"...";
// Get the path to the RTF file.
NSString *outputPath = @"...";

CPDFConvertRtfOptions * options = [[[CPDFConvertRtfOptions alloc] init] autorelease];
[options setIsContainAnnotations:NO];
[options setIsContainImages:NO];
[options setIsAllowOCR:YES];
[options setLanguage:COCRLanguageEnglish];

CPDFConverterRtf *converter = [[[CPDFConverterRtf alloc] initWithURL:[NSURL fileURLWithPath:pdfPath] password:nil] autorelease];
[converter convertToFilePath:outputPath pageIndexs:nil options:nil];