ho-tex / oberdiek

Updating the oberdiek bundle
Other
16 stars 6 forks source link

PDFCrop Mac OS CATALINA : !!! Ghostscript exited with error code 127 !!! #82

Closed PhileasFoggy closed 4 years ago

PhileasFoggy commented 4 years ago

Hello,

I'm trying to use pdfcrop with python 3.6 on a MacBook Pro OS 10.15.4. I have always an error when I compile my program during crop.

My program lines are:

import subprocess as sub sub.call('pdfcrop toto.pdf toto.pdf', shell=True)

The error is :

!!! Ghostscript exited with error code 127 !!!

Ghostscript version : 9.50 Perl : 5.28

Could you help me please ?

Regards

pablgonz commented 4 years ago

@PhileasFoggy Hi, the perl script pdfcrop is not in this repository.

PhileasFoggy commented 4 years ago

I have finally find the solution.

The problem was with a file named 'gs', that pdfcrop was no able to find. Now it's ok. Copy and paste the 'gs' file in the good directory and it will work.

pablgonz commented 4 years ago

@PhileasFoggy Very well, although the best solution is to adjust the PATH to find gs or use the gscmd option from pdfcrop. Anyway remember to close this issue. Greetings.

PhileasFoggy commented 4 years ago

Thank you