Example project demonstrating the capabilities of PDFix SDK written in C++ language.
For more information please visit https://pdfix.net.
#include "Pdfix.h" // main header
Pdfix_statics; // static definitions
int main() {
// initialize Pdfix. You can change the Pdfix_MODULE_NAME macro to path to the pdfix dll/dylib/so
if (!Pdfix_init(Pdfix_MODULE_NAME))
throw std::runtime_error("Pdfix library not found. Copy pdfix binaries into application directory.");
// get the main object
Pdfix* pdfix = GetPdfix();
// your code ...
pdfix->Destroy();
return 0;
}
- CMake 3.10.0+
Supported linux distributions:
- Ubuntu 16.04
- CentOS
- Debian
- Xcode 12.0+
- MS Visual Studio 2017 or latest
Clone the repository:
git clone https://github.com/pdfix/pdfix_sdk_example_cpp
...or download as .zip:
Download as .zip
Run the following commands in the pdfix_sdk_example_cpp folder:
cmake -S . -B build
cmake --build build
From pdfix_sdk_exmple_cpp dir:
./bin/darwin/example
./bin/linux/example
./bin/x86/example
./bin/x64/example
Let us know and we’ll get back to you. Write us to support@pdfix.net or fill the contact form.