Fix Graph outputs for multiple page PDF Postscript

Fixes #11305
This commit is contained in:
prculley 2019-08-31 15:37:21 -05:00 committed by Nick Hall
parent e983578fff
commit d096d269c7

View File

@ -1038,7 +1038,7 @@ class GVPdfGsDoc(GVDocBase):
# Generate Ghostscript code
command = '%s -q -dBATCH -dNOPAUSE -dSAFER '\
'-dDEVICEWIDTHPOINTS=%d -dDEVICEHEIGHTPOINTS=%d '\
'-sOutputFile="%s" -sDEVICE=pdfwrite '\
'-dFIXEDMEDIA -sOutputFile="%s" -sDEVICE=pdfwrite '\
'-c "<</.HWMargins [%d %d %d %d] /PageOffset [%d %d]>> '\
'setpagedevice" -f "%s"' % (
_GS_CMD, width_pt + 10, height_pt + 10, tmp_pdf_piece,