[Poppler-bugs] [Bug 19404] pdftohtml - Images don't have correct page orientation.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 7 11:08:57 PDT 2010


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

Mike Slegeir <tehpola at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #36041|0                           |1
        is obsolete|                            |

--- Comment #6 from Mike Slegeir <tehpola at yahoo.com> 2010-06-07 11:08:57 PDT ---
Created an attachment (id=36113)
 View: https://bugs.freedesktop.org/attachment.cgi?id=36113
 Review: https://bugs.freedesktop.org/review?bug=19404&attachment=36113

Rewriting the image generation for pdftohtml to use splash

In my opinion, the correct approach to this issue is to, instead of using PS
and GS, use Poppler itself to generate the images.  In my patch, I do just
that.

I subclass SplashOutputDev to overload its text-related methods so that no text
is present in the image.  I believe that the fact that Splash did not have such
an option was the reason PostScript was originally used, but it was simple
enough to modify it to make behave that way.

The performance of this method is much better, from what I've seen, and it
resolves the issue with orientation.  The only downside I'm aware of is that
our choice of image formats is down to JPEG and PNG due to the limited formats
that Splash supports.  Currently, all images generated are RGB8, but an option
could be added to allow for other color modes if desirable.

I'd love to see this included in Poppler, and I will work with whoever can help
to get this upstream as I believe it is a substantial improvement over the
previous 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