Skip to content

Commit 3227038

Browse files
committed
Add nocgo/purego implementation
1 parent 8d0e49c commit 3227038

13 files changed

+1787
-601
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ Go wrapper for [MuPDF](http://mupdf.com/) fitz library that can extract pages fr
1111
* `static` - build with static external MuPDF library (used with `extlib`)
1212
* `pkgconfig` - enable pkg-config (used with `extlib`)
1313
* `musl` - use musl compiled library
14+
* `nocgo` - experimental [purego](https://github.com/ebitengine/purego) implementation (can also be used with `CGO_ENABLED=0`)
1415

1516
### Notes
1617

1718
The bundled libraries are built without CJK fonts, if you need them you must use the external library.
1819

1920
Calling e.g. Image() or Text() methods concurrently for the same document is not supported.
21+
22+
Purego implementation requires `libffi` and `libmupdf` shared libraries on runtime.
23+
You must set `fitz.FzVersion` in your code or set `FZ_VERSION` environment variable to exact version of the shared library.
2024

2125
### Example
2226
```go

0 commit comments

Comments
 (0)