-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF rotation issue #2348
Comments
CUPS.org User: twaugh.redhat For the strollingmap.pdf case, here is a diff between the actual result after pdftops and pstops filters, and a correct-looking result: --- strollingmap-ps.ps 2007-04-18 11:08:49.000000000 +0100 The problem in this case seems to be two-fold: I managed to get correct output by applying this wrong-looking patch: --- cups-1.2.10/pdftops/PSOutputDev.cxx.pdftops-landscape 2007-02-05 20:25:50.000000000 +0000
..however, the dayplanner.pdf case seems to be more complicated even than that. The actual vs expected diff for dayplanner.pdf is: --- dayplanner-ps.ps 2007-04-18 13:07:12.000000000 +0100 The '123.5' comes from the bad re-centre code: it's (842-595)/2, i.e. half A4 height minus A4 width. However, the PSOutputDev.cxx patch above did not fix the processing of dayplanner.pdf, so I'm a bit stumped. strollingmap.pdf: landscape=true, rotate=180 |
CUPS.org User: h.blischke Looking into the PDFs and into the PS files generated by xpdf's pstops (ver 3.02) reveals the following: (1) strollingmap: (2) dayplanner In general, there seeme so be some serious misinterpretation on |
CUPS.org User: mike Reverting part of the patch from STR #2149 seems to fix this issue; the main problem is that we don't want pstops to undo our work of rotating the page... Please let me know if you run into any problems with the attached patch... |
CUPS.org User: twaugh.redhat The patch doesn't help -- in fact it makes it worse. Now instead of having the placement on the page wrong it is actually rotated wrongly. I expect this: +---+ But I'm getting this +--+ |
CUPS.org User: twaugh.redhat pdftops debug output is: DEBUG: pdftops - opened PPD file "stylus.ppd"... |
CUPS.org User: mike The attached patch (apply against the previous patch) seems to correct the cupsRotation value, which was messing up the output from pstops. Let me know if you still have problems... |
CUPS.org User: twaugh.redhat All working correctly now! Thanks! |
CUPS.org User: mike Fixed in Subversion repository. |
"str2348.patch": Index: PSOutputDev.cxx--- PSOutputDev.cxx (revision 6458)
writePSFmt("%%%%PageOrientation: %s\n", |
"str2348p2.patch": Index: PSOutputDev.cxx--- PSOutputDev.cxx (revision 6522) // Tell CUPS pstops filter not to do its own rotation...
writePSFmt("%%Producer: xpdf/pdftops %s\n", xpdfVersion);
|
Version: 1.2.10
CUPS.org User: twaugh.redhat
This PDF file:
https://www.rbgkew.org.uk/visitor/maps/strollingmap.pdf
prints incorrectly. I'm printing it with 'lp strollingmap.pdf'.
I get lots of blank space around the top and the left edge of the resulting landscape page, with cropped right and bottom edges.
It prints fine if I print it from xpdf 3.01 on Fedora Core 6 (xpdf-3.01-28.fc6). The problem seems to boil down to some sort of landscape/portrait issue, but I can't quite pin it down.
Here is another PDF file demonstrating (I think) the same problem:
http://www.rbgkew.org.uk/visitor/dayplanner.pdf
The text was updated successfully, but these errors were encountered: