| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
As part of the KDAN ecosystem, ComPDF Conversion SDK enables your C++ applications to transform PDF files into editable Office documents, images, HTML, and more — with a straightforward C++ API. Designed for cross-platform desktop applications, it preserves layout, tables, text structure, and formatting so your users get accurate, production-ready output every time.
If you find this library helpful, please consider giving us a ⭐ Star on GitHub! Have feedback or questions? Join the conversation in our Discussions.
Supported Features
Convert PDF to Word (.docx)
Convert PDF to Excel (.xlsx)
Convert PDF to PowerPoint (.pptx)
Convert PDF to HTML (.html)
Convert PDF to CSV (.csv)
Convert PDF to Image (.png, .jpg, .jpeg, .jpeg2000, .bmp, .tiff, .tga, .gif, .webp)
Convert PDF to Plain Text (.txt)
Convert PDF to Rich Text Format (.rtf)
Convert PDF to Searchable PDF (.pdf)
Convert PDF to Structured Data (.json)
Convert PDF to Markdown (.md)
Convert PDF to OFD (.ofd)
Optical Character Recognition (OCR)
Layout Analysis
Table Recognition
Mature Technology: With years of technology accumulation, we have established a complete mechanism of product iteration to offer a continuous guarantee for product competitiveness.
High-Fidelity Conversion: Designed to preserve layout, tables, text structure, and formatting in the output files.
AI-Enhanced Conversion: Continuously improved for complex layout analysis, table recognition, OCR, and editable output.
Independent Intellectual Property Rights: Our technology is independent and compliant with ISO, helping enterprises conduct international business without considering copyright risks.
High-quality Service: We provide 24/7 professional one-to-one technical support, including onsite service and remote assistance via phone and email.
With AI table recognition, AI layout analysis, and OCR capabilities, ComPDF Conversion SDK delivers accurate PDF conversion results. Simply select the appropriate conversion parameters based on your document type to achieve accurate document reconstruction. Below, we demonstrate the power of the ComPDF Conversion SDK by converting PDFs to Word, Excel, or searchable PDF files. Contact us to get a demo and experience our product's performance firsthand.
ComPDF Conversion SDK accurately restores all content and images, complex structures, paragraph aggregation, natural reading order, text styles, bold formatting, fonts, multi‑column layouts, image-text positioning, ordered lists, and more. Get a fully editable Word document that looks exactly like the original PDF.
Extract standard tables and borderless tables with precision, preserve the content and images inside table cells, and retain text styles such as bold and color. ComPDF Conversion SDK turns PDF tables into fully functional Excel spreadsheets without losing structure or formatting.
Convert scanned documents and scanned PDFs into searchable PDFs while perfectly preserving the original layout and formatting. Every word becomes searchable, locatable, and selectable – ready for copying just like native digital text.
Download Conversion SDK:
Contact us to obtain the ComPDF C++ Conversion SDK.
System Requirements:
| Development Platform | System Requirements | Development Environment | Notice |
|---|---|---|---|
| Windows | - Windows 7, 8, 10, and 11 (32-bit, 64-bit) - Need to support C++ Version 11 or higher. |
Visual Studio 2022 or higher. | Samples have been tested on Windows 10 and 11. |
| Linux | - Linux x64. - Need to support C++ Version 11 or higher. |
/ | Samples have been tested on Ubuntu 20.04. |
| Mac | - Mac OS 10.14 or higher (Intel, Apple Silicon). - Need to support C++ Version 11 or higher. |
Xcode 13.0 or higher. | Samples have been tested on Mac Intel and Mac Apple Silicon. |
ComPDF Conversion SDK provides a demo in the "samples" folder. You can follow the following steps to run the demo.
Output files (Word, Excel, PowerPoint, etc.) will be generated in the "samples/output_files" folder.
ComPDF Conversion SDK provides demos in the "samples" folder. Before running the demo, make sure you have configured your environment correctly and installed CMake (3.0 or higher) on your machine. To run the demo, you can follow these steps:
./RunDemo.shOutput files (Word, Excel, PowerPoint, etc.) will be generated in the "samples/output_files" folder.
Contact our sales team and we'll send you a 30-day free trial license for ComPDF Conversion SDK.
ComPDF Conversion SDK is a commercial SDK that requires a license for application release. Any documents, sample code, or source code distribution from the released package of ComPDF to any third party is prohibited. To get commercial license for ComPDF Conversion SDK, feel free to contact our sales team.
For C++ Conversion SDK, the commercial license must be bound to your developer device ID (How to find the developer device ID), and each license is only valid for one device ID in development mode.
If you haven't get a license key, please check out how to obtain a license key. ComPDF Conversion SDK currently supports offline authentication to verify license keys.
Learn more: What is the authentication mechanism of ComPDF's license?
Copy the License Key:
Accurately obtaining the license key is crucial for the application of the license.
Online License:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<license version="1">
<platform>windows</platform>
<starttime>xxxxxxxx</starttime>
<endtime>xxxxxxxx</endtime>
<type>online</type>
<key>LICENSE_KEY</key>
</license>
Offline License:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<license version="1">
<platform>linux</platform>
<starttime>xxxxxxxx</starttime>
<endtime>xxxxxxxx</endtime>
<key>LICENSE_KEY</key>
</license>Apply the License Key
You can perform offline authentication using the following method:
Before using the classes and methods of the ComPDF Conversion SDK in your project, you need to initialize the SDK with a valid license key. If you don't have a license key, feel free to contact the ComPDF team to obtain one.
#include "compdf_conversion.h"
using namespace compdf;
using namespace compdf::base;
using namespace compdf::common;
using namespace compdf::conversion;
const char* license = " ";
ErrorCode code = LibraryManager::LicenseVerify(license, "device_id", "app_id");
if (code != ErrorCode::Success) {
return false;
}
const char* resource_path = " ";
LibraryManager::Initialize(resource_path);ComPDF Conversion SDK provides a wide range of customizable conversion options, such as whether to include images or annotations in PDF documents during file conversion, enable OCR, perform layout analysis, and more. Explore the guides for sample code and learn how to customize conversions for the following features.
Initialize Library Resources
Set DocumentAI Model
Get Conversion Progress
Cancel Conversion Task
Select Page Range for Conversion
Conversion Options: Contain Image & Annotation
Page Layout Mode
OCR
Layout Analysis
Table Recognition
Use Custom AI Models via Callbacks (v4.1.0+)
Output Font Option
Convert PDF to Word
Convert PDF to Excel
Convert PDF to PPT
Convert PDF to HTML
Convert PDF to CSV
Convert PDF to Image
Convert PDF to RTF
Convert PDF to TXT
Convert PDF to Searchable PDF
Convert PDF to OFD
Releasing Library Resources
Extract PDF to JSON
Extract PDF to Markdown
Go to our changelog to keep up with the latest updates, improvements, and bug fixes.
Thanks for your interest in ComPDF Conversion SDK, the easy-to-use and powerful development solution. If you encounter technical questions or bug issues when using ComPDF Conversion SDK, please submit the problem report to the ComPDF team. More information as follows would help us to solve your problem:
Home link: https://www.compdf.com
Technical Support: https://www.compdf.com/support
Email: support@compdf.com
| Back | FazBrowse Home | New Git URL |