Skip to content

Commit 08446d6

Browse files
committed
xpdf: Set AutoRotatePages to None, not false.
Looking at the Ghostscript source code, it should take None/All/PageByPage instead of a boolean. Fixes matplotlib#16538.
1 parent 4764452 commit 08446d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ def xpdf_distill(tmpfile, eps=False, ptype='letter', bbox=None, rotated=False):
11981198
["ps2pdf",
11991199
"-dAutoFilterColorImages#false",
12001200
"-dAutoFilterGrayImages#false",
1201-
"-dAutoRotatePages#false",
1201+
"-sAutoRotatePages#None",
12021202
"-sGrayImageFilter#FlateEncode",
12031203
"-sColorImageFilter#FlateEncode",
12041204
"-dEPSCrop" if eps else "-sPAPERSIZE#%s" % ptype,

0 commit comments

Comments
 (0)