Path: news.mathworks.com!not-for-mail
From: "Richard " <richard.germuska@nhs.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Report Generator - Export Figures to PDF in Vector format
Date: Tue, 14 Oct 2008 17:39:02 +0000 (UTC)
Organization: Quiet Mountain Ltd
Lines: 19
Message-ID: <gd2lfl$3rv$1@fred.mathworks.com>
References: <gc5d1d$bn$1@fred.mathworks.com> <gcvc6a$ka4$1@fred.mathworks.com> <gd26q0$73f$1@fred.mathworks.com> <gd2h31$ioe$1@fred.mathworks.com> <gd2k0q$hgo$1@fred.mathworks.com>
Reply-To: "Richard " <richard.germuska@nhs.net>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1224005942 3967 172.30.248.38 (14 Oct 2008 17:39:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 14 Oct 2008 17:39:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1530058
Xref: news.mathworks.com comp.soft-sys.matlab:495137

It seems that some form of ghostscript might be included in the MCR and the default install path in the MCR is:

C:\Program Files\MATLAB\R2008a\toolbox\compiler\mcr\matlab\graphics\private

This folder does not include gswin32c.exe but it does include the following possibly relevant files:

ghostscript.m
gscript.mexw32

However manually passing these as the path to ps2pdf does not work either e.g.

gs_MCR_path = 'C:\Program Files\MATLAB\R2008a\toolbox\compiler\mcr\matlab\graphics\private\gscript.mexw32';

ps2pdf('psfile', [output_string,'.ps'], 'pdffile', [output_string, '_converted.pdf'], 'gspapersize', 'a4',...
'gscommand', gs_MCR_path);

Any ideas?