go-fitz icon indicating copy to clipboard operation
go-fitz copied to clipboard

Golang wrapper for the MuPDF Fitz library

Results 10 go-fitz issues
Sort by recently updated
recently updated
newest added

MuPDF uses a `setjmp` based exception handling system, i.e fz_try/fz_always/fz_catch. In order to detect if file is broken or not this needs to be somehow implemented in Go.

add go.sum to pass golangci-lint typecheck

Apparently the Image method is not safe for concurrent use when rendering specially big images, ie. 1 MB. Any hints?

I was having some trouble pulling this library into bazel and wanted to share what worked for me. Gazelle doesn't seem to pick up the artifact files correctly, so had...

Since the [windows github action runner upgraded gcc to 12.2](https://github.com/actions/runner-images/issues/8266) last week, my go builds have been failing with the errors below coming from go-fitz. I imagine the windows `mupdflib*.a`...

[dxatf_7194703270eb7fa37dc11189ef47dcdb.pdf](https://github.com/gen2brain/go-fitz/files/13713000/dxatf_7194703270eb7fa37dc11189ef47dcdb.pdf) This is a pdf document. I want to convert it to image by the following code, But get crash: ```shell warning: ... repeated 33 times... error: aborting process from...

Simply importing `go-fitz` causes [lilliput](github.com/discord/lilliput) to segfault when it tries to resize an image. This is unfortunate because I'd like to use these two packages together. I posted a duplicate...

Thank you for this excellent muPdf wrapper! One feature that muPdf does not implement natively is layout-preserving plain text extraction. - XPdf / poppler's pdftotext offer a `layout` mode as...

fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x7f680c36463b] runtime stack: runtime.throw({0x9f37d11?, 0x8c5c6b9?}) /usr/local/go/src/runtime/panic.go:1047 +0x5d fp=0x7f67d3ded9b0 sp=0x7f67d3ded980 pc=0x2f44edd runtime.sigpanic() /usr/local/go/src/runtime/signal_unix.go:831 +0x369 fp=0x7f67d3deda00 sp=0x7f67d3ded9b0 pc=0x2f5d1a9 goroutine...