jonathan

Results 21 comments of jonathan

Hello, I think I experience a similar issue. While the code don't crash, it seems that my images are mixed together. Here is a sample code I currently use for...

I added a PR (#12) to fix my issue, I'm not sure if this also fixes their issue

@rondymesquita my PDF is around 16MB and 15 pages, but I don't experience any crash. What is your machine specs ?

I stopped using goroutines for now as it was crashing randomly despite the fix submitted previously. It happens once every 10 convert approx. Still trying to figure out how to...

@raliste thanks for the update. I'm not sure I follow entirely, do you open the PDF with a go-fitz instance once in a separate process for each page inside the...

@raliste that sounds smart, I will give it a try. Thanks ! Update: thanks a lot, I used what you suggested with goroutines and I am down to 2.3s for...

@xiaoxfan sure here is the code: ```golang func ToPNGs(input []byte, opts *Options) ([][]byte, error) { var pngs [][]byte doc, err := fitz.NewFromMemory(input) defer doc.Close() if err != nil { return...

@xiaoxfan maybe you can try to rename the variable inside the goroutine `doc, err := fitz.NewFromMemory(src)` to something like `doc2, err := fitz.NewFromMemory(src)` because doc is already declared outside of...

@xiaoxfan are those PDF working when processed without goroutines with a single gofitz instance?

@xiaoxfan If you use the same code I pasted here you get the same issue?