https://github.com/brunsgaard/go-pdfium-render
A Go library that uses pdfium (via cgo) to render pdfs to images
https://github.com/brunsgaard/go-pdfium-render
Last synced: 6 months ago
JSON representation
A Go library that uses pdfium (via cgo) to render pdfs to images
- Host: GitHub
- URL: https://github.com/brunsgaard/go-pdfium-render
- Owner: brunsgaard
- Created: 2018-10-19T07:35:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-26T05:58:39.000Z (over 7 years ago)
- Last Synced: 2025-08-14T20:19:02.237Z (11 months ago)
- Language: Go
- Homepage: https://opensource.google.com/projects/pdfium
- Size: 1.11 MB
- Stars: 42
- Watchers: 2
- Forks: 7
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-pdfium-render
A golang libary that uses to cgo/pdfium to render pdfs to images.
Why pdfium? Because it is the best in class and because it has a BSD style license, also there will be continued development on pdfium as long as chrome is around. [0]
### Install
[Pdfium binaries](https://github.com/bblanchon/pdfium-binaries) needs to be present on your system and [pkg-config](https://en.wikipedia.org/wiki/Pkg-config) should be able to find it.
I wrote my own .pc file.
```
prefix=/opt/pdfium
libdir=/opt/pdfium/lib
includedir=/opt/pdfium/include
Name: pdfium
Description: pdfium
Version: 3580
Requires:
Libs: -L${libdir} -lpdfium
Cflags: -I${includedir}
```
### Resources
[0] https://tinyurl.com/yd5fb2rz (PDF rendering engine performance and fidelity comparison)
[2] https://pdfium.googlesource.com/pdfium/+/HEAD/docs/getting-started.md
[3] https://karthikkaranth.me/blog/calling-c-code-from-go/
[4] https://github.com/arrieta/golang-cpp-basic-example
[5] https://groups.google.com/forum/#!topic/pdfium/r6KCGo6q7Fo
[6] https://github.com/cgilling/build-pdfium
[7] http://cdn01.foxitsoftware.com/pub/foxit/manual/enu/FoxitPDF_SDK20_Guide.pdf
[8] https://github.com/bblanchon/pdfium-binaries
[9] https://tinyurl.com/y8s3aen5 (libvips)