PDFCROP not recognized on Matlab

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 件のコメント

N Kando
N Kando 2017 年 6 月 19 日
Same problem.

サインインしてコメントする。

回答 (2 件)

Jan
Jan 2017 年 6 月 19 日

1 投票

What about providing an absolute path?
system('\bin\pdf\pdfcrop image.pdf image.pdf')
or where this tool is installed.
Yuvraj Yuvraj
Yuvraj Yuvraj 2021 年 4 月 3 日

0 投票

Install the pdfcrop package:
Then use:
!pdfcrop filename.pdf filename.pdf

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

タグ

質問済み:

2016 年 6 月 10 日

回答済み:

2021 年 4 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by