diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2009-10-07 18:29:53 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2009-10-07 18:29:53 +0000 |
commit | 1e4efbc8b11d68001633822d84178a75435dc4b9 (patch) | |
tree | fce6f1f033a63584647d8ff21adc3517652fc32c /Master/texmf-dist | |
parent | 4f17176bf91e4bfc57b5e393a4deda18580bad63 (diff) |
pdfcrop 2009/10/06 v1.20
git-svn-id: svn://tug.org/texlive/trunk@15677 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/support/pdfcrop/README | 3 | ||||
-rwxr-xr-x | Master/texmf-dist/scripts/pdfcrop/pdfcrop.pl | 12 |
2 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/support/pdfcrop/README b/Master/texmf-dist/doc/support/pdfcrop/README index 2b03d451d77..97b8c0188a6 100644 --- a/Master/texmf-dist/doc/support/pdfcrop/README +++ b/Master/texmf-dist/doc/support/pdfcrop/README @@ -1,4 +1,4 @@ -README for pdfcrop 2009/09/24 v1.19 +README for pdfcrop 2009/10/06 v1.20 TABLE OF CONTENTS ================= @@ -196,6 +196,7 @@ L. HISTORY * Option --version added. 2009/09/24 v1.19: * Ghostscript detection rewritten. * Cygwin: `gs' is preferred to `gswin32c'. +2009/10/06 v1.20: * File name sanitizing in .tex file. M. TODO ======= diff --git a/Master/texmf-dist/scripts/pdfcrop/pdfcrop.pl b/Master/texmf-dist/scripts/pdfcrop/pdfcrop.pl index 98bedd70711..7c2bd4355dd 100755 --- a/Master/texmf-dist/scripts/pdfcrop/pdfcrop.pl +++ b/Master/texmf-dist/scripts/pdfcrop/pdfcrop.pl @@ -22,8 +22,8 @@ $^W=1; # turn warning on # my $file = "pdfcrop.pl"; my $program = uc($&) if $file =~ /^\w+/; -my $version = "1.19"; -my $date = "2009/09/24"; +my $version = "1.20"; +my $date = "2009/10/06"; my $author = "Heiko Oberdiek"; my $copyright = "Copyright (c) 2002-2009 by $author."; # @@ -63,6 +63,7 @@ my $copyright = "Copyright (c) 2002-2009 by $author."; # * Option --version added. # 2009/09/24 v1.19: * Ghostscript detection rewritten. # * Cygwin: `gs' is preferred to `gswin32c'. +# 2009/10/06 v1.20: * File name sanitizing in .tex file. ### program identification my $title = "$program $version, $date - $copyright\n"; @@ -448,6 +449,13 @@ push @unlink_files, $tmpfile; open(TMP, ">$tmpfile") or die "$Error Cannot write tmp file `$tmpfile'!\n"; print TMP "\\def\\pdffile{$inputfilesafe}\n"; +print TMP <<'END_TMP'; +\def\stripprefix#1>{} +\def\onelevelsanitize#1{% + \edef#1{\expandafter\stripprefix\meaning#1}% +} +\onelevelsanitize\pdffile +END_TMP if ($::opt_tex eq 'pdftex') { print TMP <<'END_TMP_HEAD'; \csname pdfmapfile\endcsname{} |