Skip to content
ComPDF

How to Run a Demo

ComPDF Conversion SDK provides demos in the "samples" folder.

  1. 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's lib/ directory (or on the system library search path).
    shell
    go get github.com/ComPDFKit/conversion-go
  2. Import the module in the sample program and fill in the input and output paths.
  3. Run the sample program to generate output files.
shell
go run ./examples/basic

3. 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.