Skip to content
Guides

Conversion Guides

ComPDFKit Conversion SDK allows developers to use a simple API to convert PDF to the most commonly used file formats like Word, Excel, PPT, HTML, CSV, PNG, JPEG, RTF, TXT, JSON, Markdown, etc. It provides a wealth of customized conversion options, such as whether to include images or annotations in PDF documents,etc.

Get Conversion Progress

ComPDFKit Conversion SDK obtains the conversion progress through callback functions. The following example demonstrates how to get the conversion progress while performing a PDF to Word task:

objective-c
// Get the path of the PDF file.
[LibraryManager setProgress:^(int current, int total) {
    NSLog(@"conversion rate: %d/%d", current, total);
} isMT:YES];

WordOptions *options = [[WordOptions alloc] init];
[CPDFConversion startPDFToWord:@"input.pdf" password:@"" outputPath:@"output.docx" options:options];