Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!ramfeed2.eweka.nl!eweka.nl!hq-usenetpeers.eweka.nl!cyclone03.ams.highwinds-media.com!news.highwinds-media.com!npeersf02.ams.highwinds-media.com!newsfe21.ams2.POSTED!7564ea0f!not-for-mail
Sender:  <tristram@chicken.quantmodels.co.uk>
From: tristram.scott@ntlworld.com (Tristram Scott)
Subject: Re: Report Generator - Export Figures to PDF in Vector format
Newsgroups: comp.soft-sys.matlab
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> <gd2lfl$3rv$1@fred.mathworks.com> <gdsard$hdl$1@fred.mathworks.com> <ge4joe$3m1$1@fred.mathworks.com> <gf20qm$98o$1@fred.mathworks.com> <MH0Rk.2556$QF4.959@newsfe13.ams2> <gfhi21$q90$1@fred.mathworks.com>
User-Agent: tin/1.7.7-20041215 ("Scalpay") (UNIX) (SunOS/5.10 (sun4u))
Lines: 35
Message-ID: <YbcTk.75139$b76.65267@newsfe21.ams2>
NNTP-Posting-Host: 82.6.107.75
X-Complaints-To: http://netreport.virginmedia.com
X-Trace: newsfe21.ams2 1226657656 82.6.107.75 (Fri, 14 Nov 2008 10:14:16 UTC)
NNTP-Posting-Date: Fri, 14 Nov 2008 10:14:16 UTC
Organization: virginmedia.com
Date: Fri, 14 Nov 2008 10:14:16 GMT
Xref: news.mathworks.com comp.soft-sys.matlab:500793


Micha?l  <orthal@hotmail.com> wrote:
> tristram.scott@ntlworld.com (Tristram Scott) wrote in message <MH0Rk.2556$QF4.959@newsfe13.ams2>...
>> 
>> Do you have a copy of ghostscript properly installed and on the search path
>> of the machine with only the MCR?
>> 
> 
> My application is going to be distributed to computers on which I'll have
> no control.  That's the reason why I'd like to use internal Matlab (MCR)
> libraries only.  
> 

Then, assuming you are going down this ghostscript route, you probably have
two choices.  The first would be to tell the end users that when they
install your application they must also install ghostscript and add it to
the search path.

The second would be to link to the ghostscript libraries as part of your
build, calling them directly to create the pdf.  You can probably put a
reasonably simple mex wrapper around ghostscript.

I have no experience with the MATLAB compiler, but I did think it was
possible to have it bundle up an arbitrary list of files together with all
the things it wants for itself.  If that is the case, perhaps you can ask
it to distribute all of ghostscript too?

Really, though, I think that you seem to be going to an awful lot of effort
to work around something which is essentially a problem with the Report
Generator.  Tell the MathWorks exactly what the problem is, and how much
grief it causes you, and see if they can provide a suitable workaround for
you.

-- 
Dr Tristram J. Scott              
Energy Consultant