[poppler] File size doubling when saving with changes

Adam Reichold adamreichold at myopera.com
Fri Mar 22 10:17:17 PDT 2013


Hello Albert,

Am 21.03.2013 23:46, schrieb Albert Astals Cid:
> El Dijous, 21 de març de 2013, a les 19:33:35, Adam Reichold va escriure:
> Hello,
> 
> I just had a user point out to me that when using the Qt frontend's
> PDFConverter to save a file with changes (irrespective of whether some
> were actually made) will double the file size in every iteration.
> (Tested with it a few files using Poppler 0.22.1.)
> 
> I suspect this has something to do with incrementally updating the
> document structure? Is this a known limitation in calculating the
> change set or something like that or should I rather open a bug report
> to track this?
> 
>> This should not happen, are you saving the file over itself? Probably not, 
>> last time i tried i think that destroyed the file :D

No, I am save to a different file in every step.

>> Also as far as i remember we have code that does nothing if you don't do any 
>> change.
> 
>> Cheers,
>>   Albert

I attached a test case that triggers the behavior. Maybe my usage of the
PDFConverter is wrong. As it is, the program yields an 800 MB file from
starting with a 1.5 MB file for me, using Poppler 0.22.1.

Best regards, Adam.

> Best regards, Adam.
>> _______________________________________________
>> poppler mailing list
>> poppler at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/poppler
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TCFileSize.cpp
Type: text/x-c++src
Size: 1113 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130322/8b4d3998/attachment.cpp>


More information about the poppler mailing list