How to Run a Demo
ComPDF Conversion SDK provides demos in the "samples" folder.
- Add the ComPDF Conversion SDK Go module as a dependency in your project's
go.mod, and make sure the dynamic library files shipped with the SDK are placed under the module'slib/directory (or on the system library search path).shellgo get github.com/ComPDFKit/conversion-go - Import the module in the sample program and fill in the input and output paths.
- Run the sample program to generate output files.
shell
go run ./examples/basic3. Conversion Guides
ComPDF Conversion SDK allows developers to use a simple API to convert PDF to commonly used file formats such as Word, Excel, PowerPoint, HTML, CSV, PNG, JPEG, RTF, TXT, Searchable PDF, OFD, JSON, and Markdown. It provides a wide range of customized conversion options, such as whether to include images or annotations in PDF documents, whether to enable OCR, whether to enable layout analysis, and more.