필터 지우기
필터 지우기

export_fig can't find pdftops

조회 수: 12 (최근 30일)
Hannes
Hannes 2013년 1월 24일
편집: Simon de Szoeke 2019년 9월 23일
Until recently I used export_fig successfully on a Mac. Now I get the following error:
'Pdftops not found. Please locate the program, or install xpdf-tools from ....'
In the window that opens i can localize the Unix executable 'xpdf-pdftops' as well as an alias 'pdftops', which points to 'xpdf-pdftops'. However, they are grayed out and unselectable.
Did anyone experience this problem and found a solution for this?
Thanks in advance Hannes
  댓글 수: 2
Melissa
Melissa 2013년 10월 1일
I have the same problem. Did you find a solution? Thanks!
Hannes
Hannes 2013년 10월 4일
Just found it today! It was a problem with the dyld library path. Doing the following fixed the problem for me: In terminal type (all on one line)
sudo cp /opt/local/lib/libfreetype.6.dylib /Applications/MATLAB_R2013a.app/bin/maci64/libfreetype.6.dylib
Of course, you adapt this line to your situation!
Hope you are successful with that.

댓글을 달려면 로그인하십시오.

답변 (1개)

Simon de Szoeke
Simon de Szoeke 2019년 9월 23일
편집: Simon de Szoeke 2019년 9월 23일
I also found the path GUI tool not to work when pdftops was on a different path, and the actual executable was named xpdf-pdftops. The GUI would not accept the symbolic link named pdftops that points to xpdf-pdftops.
To fix this, first find your pdftops installation with the linux command line:
which pdftops
My installation was from MacPorts, which puts binaries in /opt/local/bin .
Prepend your pdftops path to the cell on line 61 of pdftops.m.
paths = {'/opt/local/bin', '/usr/bin/pdftops', '/usr/local/bin/pdftops'};
Only add the path here, not the link or executable filename itself.
Then export_fig -eps works.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by