PDFCROP not recognized on Matlab

13 vues (au cours des 30 derniers jours)
Davide
Davide le 10 Juin 2016
I want to use pdfcrop in matlab via the system command:
system('pdfcrop image.pdf image.pdf')
I have installed the pdfcrop on my mac and it does work from the shell, however for some unknown reason matlab is not able to find it and gives me the error
/bin/bash: pdfcrop: command not found
so I need to do the pdfcrop manually from the shell and I cannot automize it from my matlab script. Any suggestion?
  1 commentaire
N Kando
N Kando le 19 Juin 2017
Same problem.

Connectez-vous pour commenter.

Réponses (2)

Jan
Jan le 19 Juin 2017
What about providing an absolute path?
system('\bin\pdf\pdfcrop image.pdf image.pdf')
or where this tool is installed.

Yuvraj Yuvraj
Yuvraj Yuvraj le 3 Avr 2021
Install the pdfcrop package:
Then use:
!pdfcrop filename.pdf filename.pdf

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by