pdftron-go

module
Version: v0.0.0-...-aaa684f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: AGPL-3.0

README

PDFTron GO

Website


Supported platforms: Linux , Mac, Windows

Environments and versions:

  • Minimum RAM of 2GB in Linux or 4GB in Mac/Windows
  • Go 1.15
    Note: Ubuntu Linux 14.0.x can only use Go 1.15, as Go 1.16 or higher is no longer supported in that platform.
  • Git

For Windows, you will need mingw-64:
http://mingw-w64.org/doku.php/download/mingw-builds
Make sure to choose x86_64 architecture during installation.

Running PDFTronGo from Linux

Run RunSampleLinux.sh from $HOME or

  1. cd $HOME
  2. export GO111MODULE=off
  3. go get github.com/PDFTron/pdftron-go
  4. cp -r go/src/github.com/PDFTron/pdftron-go/src_linux/pdftron/ go/src/
  5. cp -r go/src/github.com/PDFTron/pdftron-go/Samples/ go/src/pdftron/

To execute the sample code, you can try the following:

  1. cd $HOME/go/src/pdftron/Samples/AddImageTest/GO
  2. ./RunTest.sh

Running PDFTronGo from Mac

Run RunSampleMac.sh from $HOME or

  1. cd $HOME
  2. export GO111MODULE=off
  3. go get github.com/PDFTron/pdftron-go
  4. cp -R go/src/github.com/PDFTron/pdftron-go/src_mac/pdftron/ go/src/pdftron/
  5. cp -R go/src/github.com/PDFTron/pdftron-go/Samples/ go/src/pdftron/Samples/
  6. install_name_tool -id "@rpath/libpdftron.dylib" $HOME/go/src/pdftron/PDFNetC/Lib/libpdftron.dylib

To execute the sample code, you can try the following:

  1. cd $HOME/go/src/pdftron/Samples/AddImageTest/GO
  2. ./RunTest.sh

Running PDFTronGo from Windows

Run RunSampleWindows.bat from %HOMEPATH% or

  1. Run mingw-w64.bat from "C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0" to open command prompt
  2. cd %HOMEPATH%
  3. set GO111MODULE=off
  4. go get github.com/PDFTron/pdftron-go
  5. xcopy /E /I go\src\github.com\PDFTron\pdftron-go\src_win go\src
  6. xcopy /E /I go\src\github.com\PDFTron\pdftron-go\Samples go\src\pdftron\Samples

To execute the sample code, you can try the following:

  1. cd %HOMEPATH%\go\src\pdftron\Samples\AddImageTest\GO
  2. RunTest.bat

Output file will be in $HOME/go/src/pdftron/Samples/TestFiles/Output

Bin file will be in $HOME/go/src/pdftron/Samples/bin


Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL