diff --git a/gramps/gen/plug/docgen/graphdoc.py b/gramps/gen/plug/docgen/graphdoc.py index 3b3fc6778..2aa4ed1e3 100644 --- a/gramps/gen/plug/docgen/graphdoc.py +++ b/gramps/gen/plug/docgen/graphdoc.py @@ -977,8 +977,9 @@ class GVPdfGsDoc(GVDocBase): tmp_pdf_piece = "%s_%d_%d.pdf" % (tmp_ps, __x, __y) list_of_pieces.append(tmp_pdf_piece) # Generate Ghostscript code - command = '%s -q -dBATCH -dNOPAUSE -dSAFER -g%dx%d '\ - '-sOutputFile="%s" -r72 -sDEVICE=pdfwrite '\ + command = '%s -q -dBATCH -dNOPAUSE -dSAFER '\ + '-dDEVICEWIDTHPOINTS=%d -dDEVICEHEIGHTPOINTS=%d '\ + '-sOutputFile="%s" -sDEVICE=pdfwrite '\ '-c "<> '\ 'setpagedevice" -f "%s"' % ( _GS_CMD, width_pt + 10, height_pt + 10, tmp_pdf_piece, @@ -988,7 +989,7 @@ class GVPdfGsDoc(GVDocBase): os.system(command) # Merge pieces to single multipage PDF ; command = '%s -q -dBATCH -dNOPAUSE '\ - '-sOUTPUTFILE="%s" -r72 -sDEVICE=pdfwrite %s '\ + '-sOUTPUTFILE="%s" -sDEVICE=pdfwrite %s '\ % (_GS_CMD, self._filename, ' '.join(list_of_pieces)) os.system(command)