Hi
found a problem.
* Ghostscript call: gs -sDEVICE=bbox -dBATCH -dNOPAUSE -c save pop -f example(2f)test/WBS_1.1.pdf
sh: Syntax error: "(" unexpected
seems like the -f name is not in quotes
~$ pdfcrop --debug "example(2f)test/WBS_1.1.pdf"
PDFCROP 1.20, 2009/10/06 - Copyright (c) 2002-2009 by Heiko Oberdiek.
* System: unix
* Not found (gs): /home/reimar/bin/gs
* Not found (gs): /usr/local/sbin/gs
* Not found (gs): /usr/local/bin/gs
* Not found (gs): /usr/sbin/gs
* Found (gs): /usr/bin/gs
* Autodetected ghostscript command: gs
* Input file: example(2f)test/WBS_1.1.pdf
* Output file: example(2f)test/WBS_1.1-crop.pdf
* Margins: 0 0 0 0
* Running ghostscript for BoundingBox calculation ...
* Ghostscript call: gs -sDEVICE=bbox -dBATCH -dNOPAUSE -c save pop -f example(2f)test/WBS_1.1.pdf
sh: Syntax error: "(" unexpected
* Cleanup
* Temporary files: tmp-pdfcrop-7263.tex
!!! Error: Ghostscript exited with error code 2!
that is may be not the best solution.
diff -r 2f8ae9bfb970 pdfcrop.pl
--- a/pdfcrop.pl Mon Jun 06 15:48:00 2011 +0200
+++ b/pdfcrop.pl Mon Jun 06 16:32:09 2011 +0200
@@ -441,7 +441,7 @@
"save",
"pop",
"-f",
- $inputfilesafe
+ '"' . $inputfilesafe . '"'
;
my $tmpfile = "$tmp.tex";