Some test text!

Loading...
Guides
C Interface Binding

PDF library C interface binding

PDFTron’s PDF SDK ships with a powerful C API to bring accurate, reliable, and fast document reading, writing, editing, and printing capabilities to commercial applications. Using the PDFTron C headers, you can bind the PDFTron C library to other languages not directly supported by PDFTron. You can see a list of supported languages and frameworks here .

Get started with a Go example
C interface binding example
This guide is a demo for using our C interface binding and is not a production version of the Go wrapper. Please visit our PDFTron SDK for Go documentation for more information on using our production version of Go.

Header basics

The PDFTron SDK download package contains headers detailing the methods available in the C API which can be used as an interface for various other languages, including but not limited to Go, Rust and more. You can find these headers in the PDFNetC(64)/Headers/C directory. Importing these headers into your project will allow you to use the PDFTron API, but the method of importing the library differs from language to language.

Memory ownership

Responsibility for creating or deallocating certain variables or chunks of memory depends on the function. The best way to learn about this is to look at:

  1. Function documentation
  2. The implementation in the C++ wrapper
  3. The C wrapper headers

All of these are contained in the Headers folder of the package.

Get the answers you need: Support