-
Notifications
You must be signed in to change notification settings - Fork 38
/
Golang_Building_Guide.txt
30 lines (21 loc) · 1.36 KB
/
Golang_Building_Guide.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
This document shows a simple guide on how to build Golang bindings of PDFNet for Windows x64 and Linux x64.
# Required Dependencies:
- This repository
- CMake: http://www.cmake.org/download/ (version 2.8+)
- The correct PDFNetC64 for your build: https://www.pdftron.com/downloads/PDFNetC64.zip (Windows)
- SWIG https://www.swig.org/download.html
- Python3+
- Go 1.15+
## Windows Only:
- Download and install MINGW-64: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe
# Build Instructions
1. Download the correct PDFNetC64 for your version from https://dev.apryse.com/nightly, place this in the root directory of this project and **ensure it is named according to the operating system**.
Windows > PDFNetC64.zip
Mac > PDFNetCMac.zip
Linux > PDFNetC64.tar.gz
2. Open a terminal in the root directory and run `python PDFTronGo/build_go.py`
3. You should now have generated a project within ./build/PDFTronGo/pdftron. The build has completed. The project will be encapsulated within the 'pdftron' directory.
# Testing
1. Add your Apryse License to ./build/PDFTronGo/pdftron/samples/runall_go.sh variable `LICENSE_KEY`
2. Run the tests via ./build/PDFTronGo/pdftron/samples/runall_go.sh (or .bat)
You may run individual tests via ./build/PDFTronGo/pdftron/samples/runall_go.sh AddImageTest