2018-09-13 09:40:35 UTC
I use pdfcrop on Windows 10. I have installed the TeXLive 2017 full
distribution. It ships with a Ghostscript 32-bit version. Now, the
version of Ghostscript is 9.23.
I also installed a Ghostscript 64-bit 9.24 in the default place, i.e.,
I try to use pdfcrop to crop a PDF file, named a.pdf, thus:
pdfcrop --gscmd gswin64c a.pdf
However, error appears. Then, I add --debug to the above command. I get
the following message.
* Running ghostscript for BoundingBox calculation ...
* Ghostscript call: gswin64c -sDEVICE=bbox -dBATCH -dNOPAUSE -c save pop
gs: Interpreter revision (924) does not match gs_init.ps revision (923).
* Temporary files: tmp-pdfcrop-2352.tex
!!! Error: Ghostscript exited with error code 1!
The strange thing is the version of Ghostscript is mismatch.
I try to use:
pdfcrop --gscmd gswin32c a.pdf
all is OK.
I just wonder why pdfcrop try to use gs_init.ps in
...\2018\tlpkg\tlgs\Resource\Init when invoke the external gswin64c?
BTW, why pdfcrop does not reach the gs installed by TeXLive distribution?