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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 3 13:59:11 PDT 2010


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

--- Comment #4 from Mike Slegeir <tehpola at yahoo.com> 2010-06-03 13:59:11 PDT ---
Created an attachment (id=36041)
 View: https://bugs.freedesktop.org/attachment.cgi?id=36041
 Review: https://bugs.freedesktop.org/review?bug=19404&attachment=36041

Removing a line of code for landscape orientation

I know this is an old issue, but it hasn't yet been addressed as far as I can
tell.

I removed a line of code from PSOutputDev.cc; it's used in pdftohtml to
generate postscript which is used to generate images for each page.  I don't
really understand the point of this line of code, but it causes rotate to be
set to 180 when the initial state->rotate == 90, rotate0 != 0, and height >
width.

By removing this line, the PDF provided by the bug opener looks correct when
ran through pdftohtml.  If anyone can explain to me the purpose of setting
rotate to 270 - rotate, I think we could probably come up with a solution for
this bug.  If no one else knows, maybe we'd be better off without that line of
code.

Any input on my change (or any other fixes for this bug), would be greatly
appreciated!

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