Hi, I have changed PdfFileInputStream to be able to return file pointer to under laying file. After that there is no need to open another stream to same image file. PdfFileInputStream will maintain object lifetime (FILE*), if there is exception raised from jpeg code. There is also a handler which should make jpeg lib more quiet.
Some PNG files can have alpha component, for gray and RGB images. Also they may use indexed colors, and without patch they will not render or load correctly. Resource acquisition is still on lot of places very questionable. What about using tr1::unique_ptr, or boost::scoped_ptr? BTW, throwing exception from jpeg lib C code, will still terminate C++ program, unless jpeg lib is compiled with -fexceptions. At least that was a case on my system. Regards, Nenad
podofo-image.patch
Description: Binary data
------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
