[Poppler-bugs] [Bug 72312] [patch] pdftops: Fixes/improvements for -origpagesizes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 4 05:19:21 PST 2013


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

--- Comment #2 from Till Kamppeter <till.kamppeter at gmail.com> ---
Created attachment 90229
  --> https://bugs.freedesktop.org/attachment.cgi?id=90229&action=edit
A4-A3-A4-3-pdftopdf.pdf

This file (example for a book with a fold-out page) is created with LibreOffice
and run through pdftopdf. It contains 3 pages:

1. A4 portrait, no rotation
2. A3 landscape, 90 degree rotation
3. A4 portrait, no rotation

So page size, orientation, and rotation vary.

Printing with the workaround of dropping "-origpagesizes" fails:

pdftops A4-A3-A4-3-pdftopdf.pdf

makes the second page being cropped to A4 portrait.

pdftops -paper A4 A4-A3-A4-3-pdftopdf.pdf

makes the second page being squeezed into A4 portrait.

In both cases the second page is correctly rotated.

So "-origpagesizes" is needed and without my patch

pdftops -origpagesizes A4-A3-A4-3-pdftopdf.pdf

leaves the second page unrotated and so on a printer which loads A3 paper
short-edge-first the second page is not correctly printed. With my patch it
gets rotated. The leaving out of the "%%DocumentMedia: ..." line in the
PostScript output also assures that all PostScript viewers can cope with the
changing page sizes.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20131204/83368c89/attachment.html>


More information about the Poppler-bugs mailing list