From c534f509d61c29eafdd2e650cd50caac0143f34a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 17 Sep 2018 21:02:15 +0000 Subject: epstopdf (17sep18) git-svn-id: svn://tug.org/texlive/trunk@48684 c570f23f-e606-0410-a88d-b1316a301751 --- .../texk/texlive/linked_scripts/epstopdf/epstopdf.pl | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Build/source/texk') diff --git a/Build/source/texk/texlive/linked_scripts/epstopdf/epstopdf.pl b/Build/source/texk/texlive/linked_scripts/epstopdf/epstopdf.pl index 3caf2238a80..5a9567615ab 100755 --- a/Build/source/texk/texlive/linked_scripts/epstopdf/epstopdf.pl +++ b/Build/source/texk/texlive/linked_scripts/epstopdf/epstopdf.pl @@ -1,5 +1,5 @@ #!/usr/bin/env perl -# $Id: epstopdf.pl 45306 2017-09-14 21:41:37Z karl $ +# $Id: epstopdf.pl 48681 2018-09-16 23:03:58Z karl $ # (Copyright lines below.) # # Redistribution and use in source and binary forms, with or without @@ -35,7 +35,9 @@ # # emacs-page # -my $ver = "2.27"; +my $ver = "2.28"; +# 2018/09/17 v2.28 (Karl Berry) +# * -dCompatibilityLevel=1.5 by default, since gs9.25 switched to 1.7. # 2017/09/14 v2.27 (Karl Berry) # * extract value from --gsopt with $3 not $2 (extra regexp group # added previously), and check it with ^(...)$ so anchors apply to all. @@ -187,9 +189,9 @@ my $ver = "2.27"; ### emacs-page ### program identification my $program = "epstopdf"; -my $ident = '($Id: epstopdf.pl 45306 2017-09-14 21:41:37Z karl $)' . " $ver"; +my $ident = '($Id: epstopdf.pl 48681 2018-09-16 23:03:58Z karl $)' . " $ver"; my $copyright = < @@ -348,6 +350,9 @@ replaced by ".pdf". An output name ending with .pdf can also be given as a second argument on the command line, or the --outfile (-o) option can be used with any name. +The output is PDF 1.5 by default; use --gsopt=-dCompatibilityLevel=1.7 +(for example) to change this. + The resulting output is guaranteed to start at the 0,0 coordinate, and sets a page size exactly corresponding to the BoundingBox. Thus, the result does not need any cropping, and the PDF MediaBox is correct. @@ -550,6 +555,7 @@ push @GS, '-q' if $::opt_quiet; push @GS, $::opt_safer ? '-dSAFER' : '-dNOSAFER'; push @GS, '-dNOPAUSE'; push @GS, '-dBATCH'; +push @GS, '-dCompatibilityLevel=1.5'; ### option device if ($::opt_device) { -- cgit v1.2.3