[poppler] Big image in evince(libpoppler) on Nokia n8x0(Maemo)

Vlad Vasiliev vlad at gas.by
Fri Jun 6 06:49:23 PDT 2008


Hello All.

I am trying to solve the following problem arising with evince and on
Nokia N8x0 devices.
Some pdf files whith very big images inside can't be handled by evince.
The basic RAM of the device is not enough to display them.
Ed Bartosh offered the next variant:
If size of the memory needed for the image exceeds some limit
evince shouldn't display this image but instead should show a
message window with suggestion to activate swap file.
I looked at the source code of evince and came to the conclusion that
it's not possible to do it inside the evince because evince used only
one call of poppler_page_rende function to draw the whole pdf-page.

poppler_page_render calls the following functions
> Gfx::createGfx
> Gfx::display
> Gfx::execOp
> Gfx::opXObjec
> Gfx::doImage
> CairoOutputDev::drawImage
> malloc

It seems that the amount of memory allocated for the big image can be
recognized only in CairoOutputDev::drawImage.

Do you have any ideas or suggestions on this?

Thank you,
Vlad Vasiljev




More information about the poppler mailing list