Skip to content
Examples for creating and processing PDF files with UniPDF
Go Shell
Branch: master
Clone or download
Latest commit f523c34 Sep 7, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
analysis Merge remote-tracking branch 'origin/development' into merge-dev Sep 7, 2019
barcode Add documentation Aug 4, 2019
compress Add documentation Aug 4, 2019
drawing Add documentation Aug 4, 2019
metadata Adapt examples to use unipdf (#43) May 17, 2019
report Add example to showcase the features of the table component (#55) Jul 19, 2019
testing Support lazy loading and profiling in passthrough benchmark Aug 4, 2019
.gitignore add build script (#45) May 17, 2019 Update README May 19, 2019
go.mod Update go mod Aug 4, 2019
go.sum Update go mod Aug 4, 2019


This example repository demonstrates many use cases for UniDoc's UniPDF library. Example code should make it easy for users to get started with UniPDF. Feel free to add to this by submitting a pull request.

The examples are also available on UniDoc's website:

Build all examples

Building with go modules:

Simply run the build script which builds all the binaries to subfolder bin/

$ ./

Building with GOPATH:

Building with GOPATH requires a slightly different approach due to the /v3 semantic import portion of the unipdf import paths. There are two options:

Both options start with:

  • go get to download the packages

Then one can decide between the two options:

  1. Remove the /v3/ in the unipdf import paths, e.g. use instead of
  2. Alternatively create a symbolic link from the v3 subdirectory of unipdf to the unipdf repository, i.e.
ln -s $GOPATH/src/ $GOPATH/src/

or move/copy the unipdf folder to unipdf/v3 if symbolic links are not an option.

Once this has been done, then can build using the build script as well:

$ ./

or build individual example codes as desired.

You can’t perform that action at this time.