Bug 24091 - Info dictionary gets clobbered by save
Summary: Info dictionary gets clobbered by save
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 11:47 UTC by Kovid Goyal
Modified: 2009-09-26 09:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
test case (188.44 KB, application/pdf)
2009-09-22 11:48 UTC, Kovid Goyal
Details

Description Kovid Goyal 2009-09-22 11:47:40 UTC
Steps to reproduce:

Load attached file into a PDFDoc

Save the PDF Doc to a new filename

Load the new file and use doc->getInfo
Comment 1 Kovid Goyal 2009-09-22 11:48:24 UTC
Created attachment 29767 [details]
test case
Comment 2 Albert Astals Cid 2009-09-24 04:55:38 UTC
Can you please post the code you use or clarify the following questions?
Which save function you use? saveAs or saveWithoutChangesAs if saveAs you use   writeStandard, writeForceRewrite or writeForceIncremental?
Also there's only a getInfo function in the Qt3 frontend, is that the function you use that fails?
Comment 3 Kovid Goyal 2009-09-24 08:51:53 UTC
I use getDocInfo declared in PDFDoc.h (wrapper around getDocInfo in XRef.h.

The save function is saveAs and I've tried both writeNormal and forceRewrite. 
Comment 4 Albert Astals Cid 2009-09-26 09:32:15 UTC
Fixed


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.