-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
FIX: don't autorotate xpdf images #10294
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
Conversation
@@ -1557,12 +1557,14 @@ def xpdf_distill(tmpfile, eps=False, ptype='letter', bbox=None, rotated=False): | ||
command = [str("ps2pdf"), "-dAutoFilterColorImages#false", | ||
"-dAutoFilterGrayImages#false", | ||
"-sGrayImageFilter#FlateEncode", | ||
"-dAutoRotatePages=false", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a hash to make windows happy... (see above too)
unfortunately we're not currently testing this codepath on windows CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooops!
@@ -1544,7 +1544,7 @@ def xpdf_distill(tmpfile, eps=False, ptype='letter', bbox=None, rotated=False): | ||
""" | ||
pdffile = tmpfile + '.pdf' | ||
psfile = tmpfile + '.ps' | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no trailing spaces
Closing in lieu of #10295 |
PR Summary
As per #10290, ghostscript auto-rotates during
ps2pdf
, so if a figure has a lot of roated text it gets unexpectedly rotated if the user hasrcParams['ps.usedistiller'] = "xpdf"
set.This passes the flag "-dAutoRotatePages=false" to
ps2pdf
.See also
https://www.ghostscript.com/doc/current/Ps2pdf.htm
PR Checklist