diff options
author | Karl Berry <karl@freefriends.org> | 2009-09-28 15:54:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-09-28 15:54:14 +0000 |
commit | a98fcd2ec1b7da8cbd02fc3ca62becd1f0cff5dd (patch) | |
tree | aae6364e5ac88021b5d87d361433626e146297a8 /Build/source/utils | |
parent | 6d5c7e7774a737c22ead5a2aa88e6d71f7d29eb9 (diff) |
add --gscmd option
git-svn-id: svn://tug.org/texlive/trunk@15530 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils')
-rwxr-xr-x | Build/source/utils/epstopdf/epstopdf.pl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Build/source/utils/epstopdf/epstopdf.pl b/Build/source/utils/epstopdf/epstopdf.pl index 5907cae6a72..04905672f09 100755 --- a/Build/source/utils/epstopdf/epstopdf.pl +++ b/Build/source/utils/epstopdf/epstopdf.pl @@ -146,6 +146,7 @@ $::opt_exact=0; $::opt_filter=0; $::opt_gs=1; $::opt_hires=0; +$::opt_gscmd=""; $::opt_res=0; $::opt_autorotate="None"; @@ -170,6 +171,7 @@ Options: --(no)filter read standard input (default: $bool[$::opt_filter]) --(no)gs run ghostscript (default: $bool[$::opt_gs]) --(no)hires scan HiResBoundingBox (default: $bool[$::opt_hires]) + --gscmd=VAL pipe output to VAL (default: $GS) --res=DPI set image resolution (default: $resmsg) --autorotate=VAL set AutoRotatePages (default: $rotmsg) Recognized VAL choices: None, All, PageByPage @@ -181,7 +183,7 @@ Examples for producing 'test.pdf': * produce postscript | $program -f -d -o=test.pdf Example: look for HiResBoundingBox and produce corrected PostScript: - * $program -d --nogs -hires test.ps>testcorr.ps + * $program -d --nogs --hires test.ps >testcorr.ps When reporting bugs, please include an input file and command line options so the problem can be reproduced. @@ -203,6 +205,7 @@ GetOptions ( "filter!", "gs!", "hires!", + "gscmd=s", "res=i", "autorotate=s", ) or die $usage; @@ -293,6 +296,12 @@ else { debug "Output filename:", $OutputFilename; } +### option gscmd +if ($::opt_gscmd) { + debug "Switching from $GS to $::opt_gscmd"; + $GS = $::opt_gscmd; +} + ### option gs if ($::opt_gs) { debug "Ghostscript command:", $GS; |