[Poppler-bugs] [Bug 32365] Missing text with pdftops -level1sep

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 15 09:47:18 PST 2010


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

--- Comment #4 from William Bader <williambader at hotmail.com> 2010-12-15 09:47:18 PST ---
Created an attachment (id=41146)
 View: https://bugs.freedesktop.org/attachment.cgi?id=41146
 Review: https://bugs.freedesktop.org/review?bug=32365&attachment=41146

revised patch for that runs faster

This patch should produce the same results as the previous patch, but when
generating level1sep output from the attached pdf, this patch reduces the
pdftops runtime from 12.7 sec to 1.9 sec (on a 2.2GHz Core2Duo running Fedora
14).
The patch has two main differences from the previous one.
When writing the image data in doImageL1Sep(), if processColors already has
every process color set, it uses an alternate loop that does not call
addProcessColor() on each pixel.
Also, when writing the image data, instead of calling writePSFmt("{0:02x}") for
each pixel, it saves a line at a time in a buffer and writes the buffer with a
new writePSBuf() function that takes a string and a length.
The patch has less effect on other output options and on other files.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list