Summary: | pdftops produces broken Postscript | ||
---|---|---|---|
Product: | poppler | Reporter: | Till Kamppeter <till.kamppeter> |
Component: | general | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
PDF file from which pdftops produces broken PostScript
Patch to fix this bug |
Description
Till Kamppeter
2009-03-02 04:00:57 UTC
Created attachment 26437 [details] [review] Patch to fix this bug I have found the cause of the problem. ASCII85-encoded binary data was not correctly copied from the PDF input file. Patch attached. It seems i already commited that patch in master as part of other bugfix, can you confirm git master is ok? The attached document seems to work. I do not have the GIT repo of Poppler handy here, but if you have checked that the attached file is correctly converted (result displays with Ghostscript or prints on PS printer when sending unfiltered) it is OK and you can mark the bug as fixed. You can also check the poppler/PSOutputDev.cc file whether my two insertions are actually there. I have checked in the web interface of the GIT repo now. There is only one of my insertions, the one where the array gets actually written. This fixes the bug but the array will be created one unit too big. In my patch I do the same insertion also in the pre-calculation of the array size. See my patch and compare with http://cgit.freedesktop.org/poppler/poppler/tree/poppler/PSOutputDev.cc Right, i did not check correctly and was misled by a similar check in the above line. Commited now. |
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.