doc/pspdf.pl: remove .setpdfwrite from gs command line

Ghostscript no longer recommends adding the .setpdfwrite operator when
producing PDF; in fact:

.setpdfwrite
    This operator is now deprecated, and its use is discouraged

Presumably it was never actually necessary, so just drop it.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2020-07-17 18:02:49 -07:00
parent d27427846f
commit 20be7aaa28

View file

@ -124,7 +124,7 @@ my $r = system($gs, "-dCompatibilityLevel${o}1.3",
$fpopt,
"-dCompressPages${o}" . ($compress ? 'true' : 'false'),
"-dUseFlateCompression${o}true",
"-c", ".setpdfwrite", "-f", $in);
"-f", $in);
exit 0 if ( !$r && -f $out );
# 3. pstopdf (BSD/MacOS X utility)