[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#779178: pdftopdf does not handle the landscape option correctly



On Thu 05 Mar 2015 at 12:14:00 +0100, Jonas Smedegaard wrote:

> Quoting Brian Potkin (2015-03-04 17:09:17)
> > I am having doubts that a solution with orientation-requested will 
> > meet with success as landscape printing in testing for PDFs appears to 
> > be broken.
> 
> Could it perhaps be that the rotation was expressed as non-integer?
> 
> Ghostscript project just made a change to cover rotation expressed as 
> "90.0": http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=12ddbaa
> 
> (Yes, I am aware that ghostscript might be totally irrelevant here since 
> a libpoppler tool is used instead: passing this only for inspiration)

pdftopdf stopped being poppler based at version 1.0.22-1 in Aug 2012:

  * New upstream release
     - pdftopdf filter replaced by new QPDF-based filter from Tobias
       Hoffmann's Google Summer of Code project. The former Poppler-based
       pdftopdf duplicated a lot of Poppler's code. The old filter is
       still in the package as pdftopdf.old with source code in
       filter/pdftopdf.old. It will be removed in a later release.

The filter no longer uses libpoppler but libqpdf.

I was wary about approaching this bug because most of my printing is
done from the command line. After looking at the outputs of printing
from evince, iceweasel, okular and libreoffice on Jessie with the
landscape option set (they do not produce the same output for me) I am
even less inclined to print from a DE application and expect
consistency.

On the other hand a simple command like 'lp -d test -o landscape' with
a PDF file doesn't do what it did on Wheezy. My final test (which I did
had done before):

Set up a print queue:

  lpadmin -p test -v file:/tmp/test.ps -E -m drv:///sample.drv/generic.ppd

Print to the queue. The image is shown rotated by 180 degrees with

  gv test.ps

It is upside down. This is also how it prints on paper.

May I point to

  https://github.com/smilingthax/pdfautorotate

and suggest there may be some connection between the present state of
affairs and the change introduced in cups-filters (1.0.25-1)?

Anyway:

  lp -d test -o landscape -o pdfAutoRotate=off <file.pdf>

gets me a printout rotated by 270 degrees.

Regards,

Brian.


Reply to: