Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Hidden failure mode for pdftops when outputting to eps #137
This took a while to track down, so I thought I'd put it here. I'm new to this package so I can't really submit a PR without spending more time with it & learning how its structured.
tldr; The Matlab2015b version of
Things to note:
Error & debugging walkthrough:
So, originally, I got the error saying I didn't have
Ran into issues there with a conflict with
However, then I kept getting the error popup inside Matlab. Eventually I got into full debug mode to try to figure it out and needed to set breakpoints many levels deep to find the right system state (i.e., the
Which made no sense to me. Diving into
Running that on the matlab command line returned:
At which point I started writing this issue thinking I'd nearly solved it and wanting to be a good package citizen.
But wait! Little did I know that figuring out what was going on with
So the next attempt was to rebuild
So I was a little befuddled.
And then I looked at that again. Used the
suspicious that there might be some kind of masking going on I tried the
so … it was a matter of copying over the
@michaelpacer - thanks for taking the trouble and time to write this detailed description. Mighty nice of you. For the benefit of others who might not stumble on this Github issue webpage, can you think of a way to fix
Alternatively, if you let me know exactly which line croaks in
Let me know please.
So it's not that a line croaks so much as it doesn't send back up the full error, making it even harder to debug, and that error was being hidden inside
I think it was that the
except it was not even bothering to load from
It may just be that you need to catch this error, and instead of piping it through to the
while 1 errMsg = 'Pdftops not found. Please locate the program, or install xpdf-tools from '; url = 'http://foolabs.com/xpdf'; fprintf(2, '%s\n', [errMsg '<a href="matlab:web(''-browser'',''' url ''');">' url '</a>']); ⋮
you tell them that even if they have
added a commit
May 1, 2016
@YaduNa - you need to ensure that the
Thank you for your reply. When I used the link from matlab website, I am able to download xpdfreader. I can't find the the mentioned file in it. What's my mistake? Sincerely, Yadu Narendran…
On Fri, Nov 30, 2018, 7:39 PM Yair Altman ***@***.***> wrote: @YaduNa <https://github.com/YaduNa> - you need to ensure that the libfreetype.6.dylib file in your pdftops folder is copied over to Matlab's folder, replacing Matlab's version For example: sudo scp /usr/local/lib/libfreetype.6.dylib /Applications/MATLAB_R2016a.app/bin/maci64/libfreetype.6.dylib — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#137 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ArT_ceD3T2sCIT_TSnLyOs9S8jnMHeJlks5u0TwNgaJpZM4IAoMn> .