18 options = [
" -q -paper match -eps -level2 ' " source
" ' ' " dest
" ' "];
20 [status message] =
pdftops(options);
25 error(
" Unable to generate eps. Check destination directory is writable. ");
31 fid = fopen(dest,
" r+ ");
40 if strcmp(str(1:min(13, end)),
" % Produced by ")
41 fseek(fid, -numel(str)-1,
" cof ");
function varargout = pdftops(cmd)
PDFTOPS Calls a local pdftops executable with the input command.
function pdf2eps(source, dest)
Construct the options string for pdftops.