summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/epspdf
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2015-11-01 17:13:24 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2015-11-01 17:13:24 +0000
commite4b9644250f9ef381cc7177db8b7f9652542b36d (patch)
tree5e4e18c94aa0887ccd6974abbdaaa5f35ee41a50 /Master/texmf-dist/scripts/epspdf
parentcffeef88bc1e8c8dedf9fe2237d72bb3f584c774 (diff)
Small compatibility fix for luatex >=0.81
git-svn-id: svn://tug.org/texlive/trunk@38755 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/epspdf')
-rw-r--r--Master/texmf-dist/scripts/epspdf/epspdf.help28
-rwxr-xr-xMaster/texmf-dist/scripts/epspdf/epspdf.tlu30
-rwxr-xr-xMaster/texmf-dist/scripts/epspdf/epspdftk.tcl2
3 files changed, 35 insertions, 25 deletions
diff --git a/Master/texmf-dist/scripts/epspdf/epspdf.help b/Master/texmf-dist/scripts/epspdf/epspdf.help
index 269e4148471..d7653c13576 100644
--- a/Master/texmf-dist/scripts/epspdf/epspdf.help
+++ b/Master/texmf-dist/scripts/epspdf/epspdf.help
@@ -36,9 +36,10 @@ Epspdf and epsdftk
Epspdf and epsdftk
******************
-This manual is for epspdf, version 0.6.1.
+This manual is for epspdf, version 0.6.2.
-Copyright (C) 2006, 2008, 2009, 2010, 2011, 2013, 2014 Siep Kroonenberg.
+Copyright (C) 2006, 2008, 2009, 2010, 2011, 2013, 2014, 2015 Siep
+Kroonenberg.
Copying and distribution of this file, with or without
modification, are permitted in any medium without royalty provided
@@ -178,8 +179,8 @@ Basic usage of epspdf itself:
Typing 'epspdf --help' gives you the following summary:
$ epspdf --help
- Epspdf version 0.6.1
- Copyright (c) 2006, 2008, 2009, 2010, 2011, 2013, 2014 Siep Kroonenberg
+ Epspdf version 0.6.2
+ Copyright (c) 2006, 2008, 2009, 2010, 2011, 2013, 2014, 2015 Siep Kroonenberg
Convert between [e]ps and pdf formats
Usage: epspdf[.tlu] [options] infile [outfile]
@@ -348,9 +349,10 @@ Widen the window, to make the output format radio buttons visible.
5.2 Ghostscript stackunderflow error
====================================
-Due to an error in Ghostscript color handling when converting to pdf,
-selecting "printer" as target may lead to an error 'stackunderflow in
-.setdistillerparams'. Use the "default" or "prepress" target instead.
+Some Ghostscript versions, _e.g._ 9.10, have an error in color handling
+when converting to pdf: selecting "printer" as target may lead to an
+error 'stackunderflow in .setdistillerparams'. If you run into this,
+use the "default" or "prepress" target instead.
5.3 Part of the graphic gets cut off
====================================
@@ -365,8 +367,8 @@ Speed.
If Ghostscript has to do the conversion from pdf to ps then text may not
remain text, but may be replaced by bitmaps. Newer Ghostscript versions
tend to do better in this respect than older ones, but as to preserving
-fonts, the pdftops utility still handles more cases. It is part of the
-xpdf suite and of the Poppler utilities.
+fonts, the pdftops utility may still handle more cases. It is part of
+the xpdf suite and of the Poppler utilities.
5.5 The page has been converted to a bitmap
===========================================
@@ -396,8 +398,8 @@ is also written to a file 'epspdf.log'. For Linux/Unix/Mac OS X this is
in a subdirectory .epspdf of your home directory; for Windows it is in a
subdirectory epspdf of '%APPDATA%'. This APPDATA directory may be
'c:\Documents and Settings\YOUR USER NAME\Application Data' or
-'c:\Users\YOUR USER NAME\AppData\Roaming'. Otherwise, open a command
-prompt and type 'echo %APPDATA%' to display this information.
+'c:\Users\YOUR USER NAME\AppData\Roaming'. Type 'echo %APPDATA%' to
+find out which.
The logfile lists all epspdf calls and all Ghostscript- and pdftops
calls plus error information.
@@ -433,8 +435,8 @@ I no longer own a Mac, and therefore no longer try to provide an
AppleScript wrapper.
The current version has no provisions for custom Ghostscript- or pdftops
-parameters. I may of may not re-add those in a future update. The
-corresponding command-line options are accepted but have no effect.
+parameters. The corresponding command-line options are accepted but
+have no effect.
6.2 Version 0.5
===============
diff --git a/Master/texmf-dist/scripts/epspdf/epspdf.tlu b/Master/texmf-dist/scripts/epspdf/epspdf.tlu
index 463fb22f35a..7a7c2d78a97 100755
--- a/Master/texmf-dist/scripts/epspdf/epspdf.tlu
+++ b/Master/texmf-dist/scripts/epspdf/epspdf.tlu
@@ -6,9 +6,10 @@ kpse.set_program_name('texlua')
-- 0.6.0: first texlua version
-- 0.6.1: allow TeX installation on path with spaces
+-- 0.6.2: compatibility fix for luatex 0.81
-ep_version = '0.6.1'
-ep_copyright = '2006, 2008, 2009, 2010, 2011, 2013, 2014'
+ep_version = '0.6.2'
+ep_copyright = '2006, 2008, 2009, 2010, 2011, 2013, 2014, 2015'
--[[
@@ -1528,6 +1529,13 @@ function PsPdf:pdf_crop()
#3%
\fi
}
+
+% future modification: \pdfoutput => \outputmode
+\begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname pdfoutput\endcsname\relax
+ \let\pdfoutput \outputmode
+\fi
+
\begingroup
\newlinechar=10 %
\endlinechar=\newlinechar %
@@ -1540,8 +1548,8 @@ function PsPdf:pdf_crop()
'pdfcompresslevel',
'pdfhorigin',
'pdfvorigin',
- 'pdfpagewidth',
- 'pdfpageheight',
+ 'pagewidth',
+ 'pageheight',
'pdfmapfile',
'pdfximage',
'pdflastximage',
@@ -1559,8 +1567,8 @@ function PsPdf:pdf_crop()
\global\let\pdfcompresslevel\TESTpdfcompresslevel %
\global\let\pdfhorigin\TESTpdfhorigin %
\global\let\pdfvorigin\TESTpdfvorigin %
- \global\let\pdfpagewidth\TESTpdfpagewidth %
- \global\let\pdfpageheight\TESTpdfpageheight %
+ \global\let\pagewidth\TESTpagewidth %
+ \global\let\pageheight\TESTpageheight %
\global\let\pdfmapfile\TESTpdfmapfile %
\global\let\pdfximage\TESTpdfximage %
\global\let\pdflastximage\TESTpdflastximage %
@@ -1602,11 +1610,11 @@ function PsPdf:pdf_crop()
}%
\pdfhorigin=-#2bp\relax
\pdfvorigin=#3bp\relax
- \pdfpagewidth=#4bp\relax
- \advance\pdfpagewidth by -#2bp\relax
- \pdfpageheight=#5bp\relax
- \advance\pdfpageheight by -#3bp\relax
- \ht0=\pdfpageheight
+ \pagewidth=#4bp\relax
+ \advance\pagewidth by -#2bp\relax
+ \pageheight=#5bp\relax
+ \advance\pageheight by -#3bp\relax
+ \ht0=\pageheight
\shipout\box0\relax
}
]]
diff --git a/Master/texmf-dist/scripts/epspdf/epspdftk.tcl b/Master/texmf-dist/scripts/epspdf/epspdftk.tcl
index b55db2c979f..e28118853f3 100755
--- a/Master/texmf-dist/scripts/epspdf/epspdftk.tcl
+++ b/Master/texmf-dist/scripts/epspdf/epspdftk.tcl
@@ -3,7 +3,7 @@
# epspdf conversion utility, GUI frontend
#####
-# Copyright (C) 2006, 2008, 2009, 2010, 2011, 2013, 2014 Siep Kroonenberg
+# Copyright (C) 2006, 2008, 2009, 2010, 2011, 2013, 2014, 2015 Siep Kroonenberg
# n dot s dot kroonenberg at rug dot nl
#
# This program is free software, licensed under the GNU GPL, >=2.0.