PdfiumAndroid icon indicating copy to clipboard operation
PdfiumAndroid copied to clipboard

FPDF_RenderPageBitmap out of memory

Open thomas-topway-it opened this issue 4 years ago • 0 comments

Hello, I get an out of memory executing FPDF_RenderPageBitmap (to generate thumbnails of pdf cover) with large pdf files (above 100mb or even smaller with non-rasterized text). However, the same documents do not crash for instance using readera https://readera.org/en/book-reader and artifex's mupdf https://github.com/ArtifexSoftware/mupdf-android-viewer.

I'm calling directly the native function mentioned above using dart:ffi but I think that's an issue of pdfium itself and using the JNI also reproduces the issue. Is there a way to prevent this handling how the memory is used in the native library itself ?

I think mupdf on readera do not crash (on the same device, android 5.0.2, 1gb ram) also because the native lib is executed as static/standalone, do you have any comment about that ? thanks (Thomas)

thomas-topway-it avatar Oct 16 '21 19:10 thomas-topway-it