PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : pdfcrop und ghostscript



gehess
09-03-2011, 20:58
Hallo,

ich habe bereits zigmal pdfcrop problemlos verwendet. Neuerdings spuckt mir das Programm aber jedesmal folgende Fehlermeldung aus:
!!! Error: Ghostscript exited with error code 1! und über pdfcrop --debug findet sich dann folgendes Problem:
System: win
Not found (gswin32c): gswin32c.exe
Ghostscript ist allerdings installiert, ebenso Perl. Die einzige Änderung meines Systems besteht darin, das ich AktivePerl durch StrawberryPerl ersetzt habe, um biber zum Laufen zu bringen (was auch geklappt hat)
Weiter unten finden sich dann allerdings auch Fehlermeldung in diesem Zusammenhang:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\pdfcrop Skript
PDFCROP 1.31, 2010/09/17 - Copyright (c) 2002-2010 by Heiko Oberdiek.
!!! Error: Input file `Skript' not found!

C:\Users\>pdfcrop --debug
* System: win
* Not found (gswin32c): gswin32c.exe
* Not found (gswin32c): C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\gswin32c.ex
e
* Not found (gswin32c): C:\Program Files (x86)\Perl\site\bin\gswin32c.exe
* Not found (gswin32c): C:\Program Files (x86)\Perl\bin\gswin32c.exe
* Not found (gswin32c): C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\g
swin32c.exe
* Not found (gswin32c): C:\Windows\system32\gswin32c.exe
* Not found (gswin32c): C:\Windows\gswin32c.exe
* Not found (gswin32c): C:\Windows\System32\Wbem\gswin32c.exe
* Not found (gswin32c): C:\Windows\System32\WindowsPowerShell\v1.0\gswin32 c.exe
* Not found (gswin32c): C:\Program Files\WIDCOMM\Bluetooth Software\gswin32c.exe

* Not found (gswin32c): C:\Program Files\WIDCOMM\Bluetooth Software\syswow64\gsw
in32c.exe
* Not found (gswin32c): C:\Program Files\Intel\WiFi\bin\gswin32c.exe
* Not found (gswin32c): C:\Program Files\Common Files\Intel\WirelessCommon\gswin
32c.exe
* Not found (gswin32c): C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DL
LShared\gswin32c.exe
* Not found (gswin32c): C:\Program Files (x86)\Common Files\Roxio Shared\DLLShar
ed\gswin32c.exe
* Not found (gswin32c): C:\Program Files (x86)\QuickTime\QTSystem\gswin32c.exe
* Not found (gswin32c): C:\strawberry\c\bin\gswin32c.exe
* Not found (gswin32c): C:\strawberry\perl\site\bin\gswin32c.exe
* Not found (gswin32c): C:\strawberry\perl\bin\gswin32c.exe
* Not found (gs): gs.exe
* Not found (gs): C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\gs.exe
* Not found (gs): C:\Program Files (x86)\Perl\site\bin\gs.exe
* Not found (gs): C:\Program Files (x86)\Perl\bin\gs.exe
* Not found (gs): C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\gs.exe
* Not found (gs): C:\Windows\system32\gs.exe
* Not found (gs): C:\Windows\gs.exe
* Not found (gs): C:\Windows\System32\Wbem\gs.exe
* Not found (gs): C:\Windows\System32\WindowsPowerShell\v1.0\gs.exe
* Not found (gs): C:\Program Files\WIDCOMM\Bluetooth Software\gs.exe
* Not found (gs): C:\Program Files\WIDCOMM\Bluetooth Software\syswow64\gs.exe
* Not found (gs): C:\Program Files\Intel\WiFi\bin\gs.exe
* Not found (gs): C:\Program Files\Common Files\Intel\WirelessCommon\gs.exe
* Not found (gs): C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShare
d\gs.exe
* Not found (gs): C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\gs.
exe
* Not found (gs): C:\Program Files (x86)\QuickTime\QTSystem\gs.exe
* Not found (gs): C:\strawberry\c\bin\gs.exe
* Not found (gs): C:\strawberry\perl\site\bin\gs.exe
* Not found (gs): C:\strawberry\perl\bin\gs.exe
* Search registry at `HKEY_LOCAL_MACHINE/SOFTWARE/'.
* Default ghostscript command: gswin32c

Daher meine Frage: wie kann ich Mr. pdfcrop mitteilen, wo sich gswin32c.exe befindet und so den Fehler beheben? Über Umgebungsvariablen habe ich es auch schon vergeblich versucht.
Weiß jmd Rat?
Vielen Dank!
Gerd

tral
11-03-2011, 12:30
Hallo,

probier doch mal die Option:



--gscmd <pfad-zu-gswin>


Christian.

gehess
12-03-2011, 13:11
Habe ich bereits, also --gscmd C:\Pfad zu Gs
So hats dann auch funktioniert. Da ich aber wenig Lust habe, jedesmal den ganzen Pfad anzugeben, habe ich eine andere Lösung gefunden. Habe einfach die gswin32.exe in meinen perl\bin Ordner reinkopiert und jetzt klappts wieder. Scheint mir zwar nicht die eleganteste Lösung zu sein, aber so tuts wenigstens wieder