[Poppler-bugs] [Bug 47186] pdftohtml: mask images are not extracted, unless they are JPEG

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 10 09:27:25 PST 2012


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

--- Comment #3 from Ihar Filipau <thephilips at gmail.com> 2012-03-10 09:27:25 PST ---
Created attachment 58273
  --> https://bugs.freedesktop.org/attachment.cgi?id=58273
the patch, v2

Updated patch. Changes:

1. Fix the stupid copy-paste error OutputDev::drawImageMask()
   vs. OutputDev::drawImage()

2. Introduce a new PNG writing method, similar to drawJpegImage(), prototype:

void HtmlOutputDev::drawPngImage(GfxState *state, Stream *str, int width, int
height,
                                 GfxImageColorMap *colorMap, GBool isMask)

which can write both RGB and MONOCHROME images. More parameters, since unlike
the jpeg counterpart, it has to do actual image creation.

3. Replace the PNG code in methods HtmlOutputDev::drawImage() and
   HtmlOutputDev::drawImageMask() with a call to HtmlOutputDev::drawPngImage()
method.

-- 
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