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, CSV,etc. Provide a wealth of customized conversion options, such as whether to include images or annotations in PDF documents, whether to enable OCR or layout analysis, 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:

java
// Implement a callback
class ProgressClass implements ProgressCallback {
    @Override
    public void onProgress(int current, int total) {
        System.out.printf("Current Progress: %d / %d%n", current, total);
    }
}

// function
{
    LibraryManager.setProgress(new ProgressClass());
    
    // Convert PDF to Word.
    CPDFConversion.startPDFToWord(wordTestFilePath.toString(), "", outputPath.toString(), new WordOptions());
}