gen2brain / go-fitz

Golang wrapper for the MuPDF Fitz library
GNU Affero General Public License v3.0
369 stars 87 forks source link

pdf convert to image ,oom #66

Closed PycMono closed 1 year ago

PycMono commented 1 year ago

hello, here is my issue, when pdf convert to image The pod Out Of Memory ,oomkilled。 // ImageDPI returns image for given page number and DPI. func (f Document) ImageDPI(pageNumber int, dpi float64) (image.Image, error) { // .... img.Pix = C.GoBytes(tt, C.int(4bbox.x1*bbox.y1)) // .... } profile004

gen2brain commented 1 year ago

This needs more information, how much memory you have, how large the file etc. PDF parsing usually takes a lot of memory. Sorry, I don't have time to support your issue. You can reopen it if you have more information, thanks.