[Poppler-bugs] [Bug 87637] pdfseparate+pdftoppm renders different than original file

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 4 10:55:13 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=87637

--- Comment #17 from Thomas Freitag <Thomas.Freitag at alfa.de> ---
Hmmh, Albert, I'm not able to see any differences between the png's created
with following commands, even not by a pixel by pixel comparison:

./utils/pdfseparate 87637.open/bug306008.pdf output/bug306008.pdf
./utils/pdftoppm -png -cropbox 87637.open/bug306008.pdf output/bug306008-orig
./utils/pdftoppm -png -cropbox output/bug306008.pdf output/bug306008-sep

But there is a difference between the PDF separated and the original:

MediaBox[0 0 455.3858267716536 595.1692913385828]
MediaBox[0 0 455.3858267717 595.1692913386]

The reason for it is in 

void PDFDoc::writeObject (Object* obj, OutStream* outStr, XRef *xRef, Guint
numOffset, Guchar *fileKey,
                          CryptAlgorithm encAlgorithm, int keyLength, int
objNum, int objGen)

: : :

s.appendf("{0:.10g}", obj->getReal());

Can You change that in Your test to

s.appendf("{0:.15g}", obj->getReal());

and look, if there are still pixel changes?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20160204/e4a662be/attachment.html>


More information about the Poppler-bugs mailing list