PDFCROP not recognized on Matlab
6 次查看(过去 30 天)
显示 更早的评论
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?
回答(2 个)
Jan
2017-6-19
What about providing an absolute path?
system('\bin\pdf\pdfcrop image.pdf image.pdf')
or where this tool is installed.
0 个评论
Yuvraj Yuvraj
2021-4-3
Install the pdfcrop package:
Then use:
!pdfcrop filename.pdf filename.pdf
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!