该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Examples

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/.

Build all examples

Building with go modules:

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

$ ./build_examples.sh

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 github.com/unidoc/unipdf/... to download the packages

Then one can decide between the two options:

  1. Remove the /v3/ in the unipdf import paths, e.g. use github.com/unidoc/unipdf/core instead of github.com/unidoc/unipdf/v3/core
  2. Alternatively create a symbolic link from the v3 subdirectory of unipdf to the unipdf repository, i.e.
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.

空文件

简介

Examples for creating and processing PDF files with UniPDF https://github.com/unidoc/unipdf 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化