Rank: 433564 based on 0 downloads (last 30 days) and 0 file submitted
photo

Per Bröms

E-mail
Company/University
Thin Film Electronics AB

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Per View all
Updated File Comments Rating
04 Feb 2010 ps2pdf Convert PostScript file to PDF using Ghostscript; can generate multi-page PDF files. Author: Richard Quist

Very nice. This work very good for me.

I found two bugs thou.

1) You need to put " (double quote) around the Ghostscript input file name. If you have space chars in the path e.g. "\\server\directory with space in the name\myinput.ps" it will crash otherwise. So line 123 and 125 need to be modified.

New 123- [s, r] = gsData.cmd(['@' gsData.responseFile], ['"' gsData.psFile '"'], gsDebug);

New 125- [s, r] = system([gsData.cmd ' @' gsData.responseFile ' "' gsData.psFile '"']);

2) To work with really old version of MATLAB, like R14, you need to remove the () after Local_GetOldGhostscript(); in line 288

New 288- [gsCmd, ghostDir] = Local_GetOldGhostscript;

Now it work on R14 and with all directory names.
Also tested on 2006b.

Thanks,
/Per

04 Feb 2010 ps2pdf Convert PostScript file to PDF using Ghostscript; can generate multi-page PDF files. Author: Richard Quist

Contact us