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: https://unidoc.io/examples/.
Simply run the build script which builds all the binaries to subfolder bin/
$ ./build_examples.sh
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 github.com/unidoc/unipdf/...
to download the packagesThen one can decide between the two options:
/v3/
in the unipdf import paths, e.g. use github.com/unidoc/unipdf/core
instead of github.com/unidoc/unipdf/v3/core
ln -s $GOPATH/src/github.com/unidoc/unipdf $GOPATH/src/github.com/unidoc/unipdf/v3
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:
$ ./build_examples.sh
or build individual example codes as desired.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。