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:
c++
// Declare and implement a callback function using a convenient lambda expression.
auto progress = [](int current_page_count, int total_page_count) {
// The first argument is the current page count, the second is the total page count of the PDF document.
std::cout << "convert rate: " << current_page_count << "/" << total_page_count << std::endl;
};
LibraryManager::SetProgress(progress);
ConvertOptions opt;
// pdf to word.
CPDFConversion::StartPDFToWord("input.pdf", "password", "path/output.docx", opt);