Go (C Interface Binding) new project with Apryse SDK PDF library integration
This guide will help you integrate a free trial of the Apryse SDK with Go using Apryse Headers on macOS, Linux or Windows in a new Go app. (Or see instructions for incorporation with an existing project.) Your free trial includes unlimited trial usage and support from solution engineers.
Prerequisites
Make sure Go is installed at /usr/local/go and /usr/local/go/bin.
Apryse SDK for macOS
curl -L -O https://downloads.apryse.com/downloads/PDFNetCMac.zip
unzip PDFNetCMac.zipGet your Apryse trial key.
Setup
Create a project directory called
myApp.Extract the
PDFNetCMacpackage as a folder into your project directory.
~/myApp
~/myApp/PDFNetCMac
~/myApp/PDFNetCMac/Headers
~/myApp/PDFNetCMac/Lib
...Integrate Apryse SDK with Go
In your project directory, create a new file called
myApp.goAdd the following code inside:Save and close the file.Your folder should look similar to:
In the project folder, run:This will produce a
myAppexecutable file.
Run the executable file. The executable will produce a pdf with a blank page in a linearized format.
Make sure Go is part of your path variable.
Apryse SDK for Windows
Get your Apryse trial key.
Setup
Create a project directory inside your
go/src/folder. Call itmyAppBy default it should be at this location:
Extract the folder from the .zip file into your project directoryCopy
src/myApp/PDFNetC(64)/Lib/PDFNet.dllintosrc/myApp/
Integrate Apryse SDK with Go
In your project directory, create a new file called
myApp.goAdd the following code inside:Save and close the file.Your folder should look similar to:

In the project folder, run:This will produce a myApp.exe file.
Run the executable file. The executable will produce a pdf with a blank page in a linearized format.
Make sure Go is installed at `/usr/local/go` and `/usr/local/go/bin`.
Apryse SDK for Linux
Get your Apryse trial key.
Setup
Create a project directory called
myApp.Extract the
PDFNetC64package as a folder into your project directory.
Your files and folders should look similar to:
~/myApp ~/myApp/PDFNetC64 ~/myApp/PDFNetC64/Headers ~/myApp/PDFNetC64/Lib ...
Integrate Apryse SDK with Go
In your project directory, create a new file called
myApp.goAdd the following code inside:Save and close the file.Your files and folders should look similar to:
In the project folder, run:This will produce a
myAppexecutable file.
Run the executable file. The executable will produce a pdf with a blank page in a linearized format.
Next step
Last updated
Was this helpful?