From b4381db4bc78db78eaa9d4cefd5a9da89d514616 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 16 Sep 2018 23:03:58 +0000 Subject: epstopdf 2.28: PDF 1.5 by default, since gs9.25 changed to 1.7 git-svn-id: svn://tug.org/texlive/trunk@48681 c570f23f-e606-0410-a88d-b1316a301751 --- Build/extra/epstopdf/Makefile | 7 +++++++ Build/extra/epstopdf/epstopdf.1 | 12 ++++++++++-- Build/extra/epstopdf/epstopdf.pl | 10 ++++++++-- 3 files changed, 25 insertions(+), 4 deletions(-) (limited to 'Build/extra') diff --git a/Build/extra/epstopdf/Makefile b/Build/extra/epstopdf/Makefile index ef62a30d9ce..c5f618bce0f 100644 --- a/Build/extra/epstopdf/Makefile +++ b/Build/extra/epstopdf/Makefile @@ -22,6 +22,7 @@ check: check-help check-version check-help-r check-usage \ check-gscmd check-gsopt check-gsopts \ check-nogs \ check-output \ + check-pdfversion \ check-percent \ check-restricted-device \ check-restricted-gscmd \ @@ -132,6 +133,12 @@ check-binhdr-cr: check-binhdr-crlf: $(MAKE) file=test-binhdr-crlf check1 +check-pdfversion: + $(e2p) test-simple.eps + pdfinfo test-simple.pdf | grep '^PDF version.*1\.5$$' + $(e2p) --gsopt=-dCompatibilityLevel=1.4 test-simple.eps + pdfinfo test-simple.pdf | grep '^PDF version.*1\.4$$' + check-percent: $(MAKE) file=test-per%cent check1 test -s test-per%cent.pdf diff --git a/Build/extra/epstopdf/epstopdf.1 b/Build/extra/epstopdf/epstopdf.1 index 0405e4499f3..c16262939e0 100644 --- a/Build/extra/epstopdf/epstopdf.1 +++ b/Build/extra/epstopdf/epstopdf.1 @@ -1,4 +1,4 @@ -.TH EPSTOPDF 1 "7 January 2017" +.TH EPSTOPDF 1 "17 September 2018" .\" $Id$ .SH NAME epstopdf, repstopdf \- convert an EPS file to PDF @@ -19,6 +19,14 @@ replaced by \fB.pdf\fP. An output name ending with .pdf can also be given as a second argument on the command line, or the \fB--outfile\fP (\fB-o\fP) option can be used with any name. .PP +The output is PDF 1.5 by default; use, e.g., +.nf +--gsopt=-dCompatibilityLevel=1.7 +.fi +to change this. (Until epstopdf 2.28 (released September 2018), the +PDF version was whatever the underlying Ghostscript or other interpreter +produced by default.) +.PP PJL commands at the start of a file are removed. DOS EPS binary files (TN 5002) are supported. .PP @@ -151,4 +159,4 @@ Man page originally written by Jim Van Zandt. .PP epstopdf home page: http://tug.org/epstopdf. .PP -You may freely use, modify and/or distribute this file. +You may freely use, modify and/or distribute this man page. diff --git a/Build/extra/epstopdf/epstopdf.pl b/Build/extra/epstopdf/epstopdf.pl index 10f3026daf4..353ad6d0265 100755 --- a/Build/extra/epstopdf/epstopdf.pl +++ b/Build/extra/epstopdf/epstopdf.pl @@ -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. @@ -189,7 +191,7 @@ my $ver = "2.27"; my $program = "epstopdf"; my $ident = '($Id$)' . " $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