Welcome to Apryse. Go for the Apryse SDK is cross-platform and supported on Windows, Linux and macOS. To get started, choose your preferred platform from the tabs below.
This guide will help you run Apryse samples and integrate the Apryse SDK into Go applications on Windows. Your free trial includes unlimited trial usage and support from solution engineers.
A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
1. Create a directory for your project and a main.go
file within. Add the following code to your main.go
:
2. Initialize your go.mod
:
3. Fetch the dependencies for your project:
4. Set your PATH to point to the shared libraries in pdftron-go
in your current command shell. Replace your_version
with the version of pdftron-go
you are running:
Or in powershell:
You may also copy the .dll files from the above path to the same place as your project executable.
5. Set the CGO_ENABLED environment variable to 1:
Or in powershell:
6. Install a C compiler, like MinGW, TDM-GCC, LLVM/Clang, or MSVC, and add its location to your PATH.
7. Set the CC environment variable to the C compiler you installed. For MinGW/TDM-GCC, its "gcc". For LLVM/Clang, its "clang". For MSVC, its "cl.exe".
Or in powershell:
7. Run your created application:
$GOPATH/pkg/mod/github.com/pdftron/pdtron-go/v2@version
./samples
directory and modify the runall_go.bat
and set your LICENSE_KEY
. If using Apryse modules such as CAD, MODULE_PATH
to the directory where your modules are stored.runallgo.bat
. All sample tests will be run. a. If you wish to run a specific test, this can be done by specifying the test ./runall_go.bat AddImageTest
Output files will be created in ./TestFiles/Output
This can be done by modifying your go.mod via this command in your project directory.
This guide will help you run Apryse samples and integrate the Apryse SDK into Go applications on Linux. Your free trial includes unlimited trial usage and support from solution engineers.
Download the SDK
A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
main.go
file within. Add the following code to your main.go
.go.mod
$GOPATH/pkg/mod/github.com/pdftron/pdtron-go/v2@version
./samples
directory and modify the runall_go.sh
and set your LICENSE_KEY
. If using Apryse modules such as CAD, MODULE_PATH
to the directory where your modules are stored.runall_go.sh
. All sample tests will be run. a. If you wish to run a specific test, this can be done by specifying the test ./runall_go.sh AddImageTest
Output files will be created in ./TestFiles/Output
This can be done by modifying your go.mod via this command in your project directory.
This guide will help you run Apryse samples and integrate the Apryse SDK into Go applications on macOS. Your free trial includes unlimited trial usage and support from solution engineers.
Download the SDK
A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
main.go
file within. Add the following code to your main.go
.go.mod
$GOPATH/pkg/mod/github.com/pdftron/pdtron-go/v2@version
./samples
directory and modify the runall_go.sh
and set your LICENSE_KEY
. If using Apryse modules such as CAD, MODULE_PATH
to the directory where your modules are stored.runall_go.sh
. All sample tests will be run. a. If you wish to run a specific test, this can be done by specifying the test ./runall_go.sh AddImageTest
Output files will be created in ./TestFiles/Output
This can be done by modifying your go.mod
via this command in your project directory.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales