<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977</link>
    <title>MATLAB Central Newsreader - Report Generator - Export Figures to PDF in Vector format</title>
    <description>Feed for thread: Report Generator - Export Figures to PDF in Vector format</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 03 Oct 2008 15:17:02 -0400</pubDate>
      <title>Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#603579</link>
      <author>Richard </author>
      <description>Hi there,&lt;br&gt;
&lt;br&gt;
I'm trying to export figures to PDF files using Report Generator but am just getting a blank PDF with no figure inside.&lt;br&gt;
&lt;br&gt;
I need the final figure to be in vector format so that it can be scaled in PDF viewer.&lt;br&gt;
&lt;br&gt;
To do this I am specifying the 'Image File Format'of my 'Figure Snapshot' to be 'Color Encapsulated Postscript2'.&lt;br&gt;
&lt;br&gt;
However this just outputs a PDF file, with no figure included.&lt;br&gt;
&lt;br&gt;
Is this a bug, or are there some other options that need to be set in order to export vector graphics to PFD using Report Generator?&lt;br&gt;
&lt;br&gt;
Many thanks for any help, Rich </description>
    </item>
    <item>
      <pubDate>Mon, 13 Oct 2008 11:42:02 -0400</pubDate>
      <title>Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#604949</link>
      <author>Richard </author>
      <description>UPDATE&lt;br&gt;
&lt;br&gt;
Mathworks have confirmed that the Report Generator uses third-party software that cannot retain vector properties when exporting to PDF via Report Generator, despite apparently offering this functionality in the Report Generator GUI.&lt;br&gt;
&lt;br&gt;
This is now a known issue and the developers are working to resolve it for a future as yet unspecified release.&lt;br&gt;
&lt;br&gt;
The work around is to not use Report Generator and use the print command with -dpdf option. This retains the vector format, but at the cost of the rest of the Report Generator functionality. In particular there is no append option with -dpdf so multi-page PDFs present more of a challenge.&lt;br&gt;
&lt;br&gt;
I am looking into a solution for creating multi-page PDF documents via the -dpdf command.&lt;br&gt;
&lt;br&gt;
I was initially thinking of resorting to a system command in conjunction with a third party PDF tool - however this presents it's own set of problems for deploying the compiled Matlab executable because of the dependancy on the third party .exe.&lt;br&gt;
&lt;br&gt;
If anyone has any thoughts on whether it is technically possible to create a compiled Matlab GUI that creates multi-page vector PDFs, using pure Matlab code I would be very grateful.&lt;br&gt;
&lt;br&gt;
Cheers, Rich &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Richard &quot; &amp;lt;richard.germuska@nhs.net&amp;gt; wrote in message &amp;lt;gc5d1d$bn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi there,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm trying to export figures to PDF files using Report Generator but am just getting a blank PDF with no figure inside.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I need the final figure to be in vector format so that it can be scaled in PDF viewer.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; To do this I am specifying the 'Image File Format'of my 'Figure Snapshot' to be 'Color Encapsulated Postscript2'.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; However this just outputs a PDF file, with no figure included.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is this a bug, or are there some other options that need to be set in order to export vector graphics to PFD using Report Generator?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Many thanks for any help, Rich </description>
    </item>
    <item>
      <pubDate>Mon, 13 Oct 2008 14:12:04 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#604985</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>Richard  &amp;lt;richard.germuska@nhs.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; UPDATE&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Mathworks have confirmed that the Report Generator uses third-party&lt;br&gt;
&amp;gt; software that cannot retain vector properties when exporting to PDF via&lt;br&gt;
&amp;gt; Report Generator, despite apparently offering this functionality in the&lt;br&gt;
&amp;gt; Report Generator GUI.&lt;br&gt;
[snip]&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If anyone has any thoughts on whether it is technically possible to&lt;br&gt;
&amp;gt; create a compiled Matlab GUI that creates multi-page vector PDFs, using&lt;br&gt;
&amp;gt; pure Matlab code I would be very grateful.&lt;br&gt;
&lt;br&gt;
What about creating a LaTeX report instead, with the images going in as&lt;br&gt;
eps?  You can then run PDFLaTeX over it, or LateX, dvips and psp2df.&lt;br&gt;
&lt;br&gt;
Not quite a pure MATLAB solution, but then, technically, neither is the&lt;br&gt;
report generator.&lt;br&gt;
&lt;br&gt;
Personally, I am still awaiting a command line version of the report&lt;br&gt;
generator, allowing creation of documents paragraph by paragraph through&lt;br&gt;
function calls. It doesn't seem to be the toolbox that gets the most&lt;br&gt;
attention from the developers.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott               &lt;br&gt;
Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Mon, 13 Oct 2008 14:51:02 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#604989</link>
      <author>Richard </author>
      <description>Thanks Tristram,&lt;br&gt;
&lt;br&gt;
This should work for most people, but I am creating a reporting application that needs to be deployed as a compiled standalone. &lt;br&gt;
&lt;br&gt;
I tried bringing in the various eps2pdf m-files and ghostscript files to the Matlab compiler but it fell over.&lt;br&gt;
&lt;br&gt;
If anyone has any more ideas on exporting multi-page PDFs directly from Matlab without resorting to eps shenanigans that'd be great.&lt;br&gt;
&lt;br&gt;
Cheers, Rich&lt;br&gt;
&lt;br&gt;
PS I thought all of the Report Generator toolbox functions etc were already available on the command line as function calls? That said I've not used it much, but I think there's a way to expose the m-code that the report generator automatically creates.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; What about creating a LaTeX report instead, with the images going in as&lt;br&gt;
&amp;gt; eps?  You can then run PDFLaTeX over it, or LateX, dvips and psp2df.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Not quite a pure MATLAB solution, but then, technically, neither is the&lt;br&gt;
&amp;gt; report generator.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Personally, I am still awaiting a command line version of the report&lt;br&gt;
&amp;gt; generator, allowing creation of documents paragraph by paragraph through&lt;br&gt;
&amp;gt; function calls. It doesn't seem to be the toolbox that gets the most&lt;br&gt;
&amp;gt; attention from the developers.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Dr Tristram J. Scott               &lt;br&gt;
&amp;gt; Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Tue, 14 Oct 2008 13:28:32 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#605160</link>
      <author>Richard Quist</author>
      <description>Richard wrote:&lt;br&gt;
&amp;gt; UPDATE&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Mathworks have confirmed that the Report Generator uses third-party software that cannot retain vector properties when exporting to PDF via Report Generator, despite apparently offering this functionality in the Report Generator GUI.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; This is now a known issue and the developers are working to resolve it for a future as yet unspecified release.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The work around is to not use Report Generator and use the print command with -dpdf option. This retains the vector format, but at the cost of the rest of the Report Generator functionality. In particular there is no append option with -dpdf so multi-page PDFs present more of a challenge.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am looking into a solution for creating multi-page PDF documents via the -dpdf command.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I was initially thinking of resorting to a system command in conjunction with a third party PDF tool - however this presents it's own set of problems for deploying the compiled Matlab executable because of the dependancy on the third party .exe.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If anyone has any thoughts on whether it is technically possible to create a compiled Matlab GUI that creates multi-page vector PDFs, using pure Matlab code I would be very grateful.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Cheers, Rich &lt;br&gt;
&amp;gt; &lt;br&gt;
The ps2pdf function I submitted to the File Exchange (available from here:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1097474&amp;objectType=author)&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1097474&amp;objectType=author)&lt;/a&gt; &lt;br&gt;
will create a pdf file from a specified postscript file. Since MATLAB supports &lt;br&gt;
creating multi-page postscript files (using the -append option of the print &lt;br&gt;
command) you can create multi-page pdf files with this utility.&lt;br&gt;
&lt;br&gt;
Hope that helps.&lt;br&gt;
-- &lt;br&gt;
&lt;br&gt;
Richard Quist&lt;br&gt;
Software Developer&lt;br&gt;
The MathWorks, Inc.</description>
    </item>
    <item>
      <pubDate>Tue, 14 Oct 2008 16:24:01 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#605212</link>
      <author>Richard </author>
      <description>But can ps2pdf be compiled and distributed to platforms with only the MCR (Matlab Compiler Runtime) installed? i.e &lt;br&gt;
&lt;br&gt;
1) Does the MCR R2008a install a version of Ghostscript?&lt;br&gt;
&lt;br&gt;
2) If it does will ps2pdf detect the MCR's version of Ghostscript to generate an A4 pdf using ps2pdf('psfile', 'input.ps', 'pdffile', 'output.pdf', 'gspapersize', 'a4')?&lt;br&gt;
&lt;br&gt;
Cheers, Rich&lt;br&gt;
&lt;br&gt;
&amp;gt; The  ps2pdf function I submitted to the File Exchange (available from here:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1097474&amp;objectType=author)&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1097474&amp;objectType=author)&lt;/a&gt; &lt;br&gt;
&amp;gt; will create a pdf file from a specified postscript file. Since MATLAB supports &lt;br&gt;
&amp;gt; creating multi-page postscript files (using the -append option of the print &lt;br&gt;
&amp;gt; command) you can create multi-page pdf files with this utility.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope that helps.&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Richard Quist&lt;br&gt;
&amp;gt; Software Developer&lt;br&gt;
&amp;gt; The MathWorks, Inc.</description>
    </item>
    <item>
      <pubDate>Tue, 14 Oct 2008 17:14:02 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#605214</link>
      <author>Richard </author>
      <description>Here's the error message I get in the DOS box when I try and run a compiled GUI that uses ps2pdf:&lt;br&gt;
&lt;br&gt;
?? Undefined function or method 'gscript' for input arguments of type 'char'.&lt;br&gt;
&lt;br&gt;
error in ==&amp;gt; ps2pdf at 123&lt;br&gt;
&lt;br&gt;
The GUI was previously working as an uncompiled M-file.&lt;br&gt;
&lt;br&gt;
Richard is this a straightforward update for ps2pdf?</description>
    </item>
    <item>
      <pubDate>Tue, 14 Oct 2008 17:39:02 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#605218</link>
      <author>Richard </author>
      <description>It seems that some form of ghostscript might be included in the MCR and the default install path in the MCR is:&lt;br&gt;
&lt;br&gt;
C:\Program Files\MATLAB\R2008a\toolbox\compiler\mcr\matlab\graphics\private&lt;br&gt;
&lt;br&gt;
This folder does not include gswin32c.exe but it does include the following possibly relevant files:&lt;br&gt;
&lt;br&gt;
ghostscript.m&lt;br&gt;
gscript.mexw32&lt;br&gt;
&lt;br&gt;
However manually passing these as the path to ps2pdf does not work either e.g.&lt;br&gt;
&lt;br&gt;
gs_MCR_path = 'C:\Program Files\MATLAB\R2008a\toolbox\compiler\mcr\matlab\graphics\private\gscript.mexw32';&lt;br&gt;
&lt;br&gt;
ps2pdf('psfile', [output_string,'.ps'], 'pdffile', [output_string, '_converted.pdf'], 'gspapersize', 'a4',...&lt;br&gt;
'gscommand', gs_MCR_path);&lt;br&gt;
&lt;br&gt;
Any ideas?</description>
    </item>
    <item>
      <pubDate>Fri, 24 Oct 2008 11:17:02 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#607136</link>
      <author>Richard </author>
      <description>Sorry to do this but reposting as no response in last 7 days and this issue is becoming project critical. Originally posted on 3rd October.&lt;br&gt;
&lt;br&gt;
Any ideas on how to get ps2pdf working in a compiled standalone app?&lt;br&gt;
&lt;br&gt;
Thanks, Rich</description>
    </item>
    <item>
      <pubDate>Fri, 24 Oct 2008 13:21:44 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#607161</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>Richard &amp;lt;richard.germuska@nhs.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; Sorry to do this but reposting as no response in last 7 days and this&lt;br&gt;
&amp;gt; issue is becoming project critical. Originally posted on 3rd October.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any ideas on how to get ps2pdf working in a compiled standalone app?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks, Rich&lt;br&gt;
&lt;br&gt;
Install a copy of Ghostscript, and make sure it is on your PATH.  Then you&lt;br&gt;
should be able to use !ps2pdf myfile or dos('ps2pdf myfile').&lt;br&gt;
&lt;br&gt;
ps2pdf is part of the standard Ghostscript distribution.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott               &lt;br&gt;
Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Fri, 24 Oct 2008 14:20:38 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#607182</link>
      <author>Walter Roberson</author>
      <description>Richard wrote:&lt;br&gt;
&amp;gt; Sorry to do this but reposting as no response in last 7 days and this issue is&lt;br&gt;
&amp;gt; becoming project critical. Originally posted on 3rd October.&lt;br&gt;
&lt;br&gt;
&amp;gt; Any ideas on how to get ps2pdf working in a compiled standalone app?&lt;br&gt;
&lt;br&gt;
Sorry, the response from this quarter is &quot;I am -completely- unfamiliar with&lt;br&gt;
the Report Generator, so my existing experience does not help; and I have&lt;br&gt;
not licensed the Report Generator -or- the compiler, so I cannot experiment.&quot;</description>
    </item>
    <item>
      <pubDate>Fri, 24 Oct 2008 15:27:02 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#607198</link>
      <author>Richard </author>
      <description>Thanks Tristram,&lt;br&gt;
&lt;br&gt;
I am hoping NOT to have to install Ghostscript on every client I deploy the application to...&lt;br&gt;
&lt;br&gt;
Since I think Ghostscript already comes with the MCR (Matlab Compiler Runtime) the question really is how to make ps2pdf.m that Richard Quist wrote find the right file in the MCR installation - does anyone know what it is? See postings above for more details on what I've already tried...&lt;br&gt;
&lt;br&gt;
Walter, this has now turned into a conversation about the compiler only. The report generator solution was ditched early on in  the thread (despite the title!).&lt;br&gt;
&lt;br&gt;
Any other ideas?</description>
    </item>
    <item>
      <pubDate>Mon, 27 Oct 2008 14:38:06 -0400</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#607518</link>
      <author>Richard Quist</author>
      <description>Richard wrote:&lt;br&gt;
&amp;gt; Sorry to do this but reposting as no response in last 7 days and this issue is becoming project critical. Originally posted on 3rd October.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any ideas on how to get ps2pdf working in a compiled standalone app?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks, Rich&lt;br&gt;
&lt;br&gt;
It appears to be a problem with accessing the mex file in a private directory. &lt;br&gt;
I've asked internally about the issue and will post again when I know more. As &lt;br&gt;
an interim workaround, it should be possible to copy the gscript.mexw32 file &lt;br&gt;
into the same directory as the ps2pdf.m file&lt;br&gt;
-- &lt;br&gt;
&lt;br&gt;
Richard Quist&lt;br&gt;
Software Developer&lt;br&gt;
The MathWorks, Inc.</description>
    </item>
    <item>
      <pubDate>Fri, 07 Nov 2008 18:19:02 -0500</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#609638</link>
      <author>Micha?l </author>
      <description>Richard Quist &amp;lt;rquist_nospam@mathworks.com&amp;gt; wrote in message &amp;lt;ge4joe$3m1$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Richard wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; It appears to be a problem with accessing the mex file in a private directory. &lt;br&gt;
&amp;gt; I've asked internally about the issue and will post again when I know more. As &lt;br&gt;
&amp;gt; an interim workaround, it should be possible to copy the gscript.mexw32 file &lt;br&gt;
&amp;gt; into the same directory as the ps2pdf.m file&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&lt;br&gt;
I've tried this workaround (to include the gscript.mexw32 file with the &quot;others files&quot; of the deploy tool).  It works well in an executable runned on a Matlab equiped computer but fails on a computer equiped only with the MCR (v78).  &lt;br&gt;
Any thought?&lt;br&gt;
&lt;br&gt;
Michael Fournier</description>
    </item>
    <item>
      <pubDate>Fri, 07 Nov 2008 19:30:52 -0500</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#609651</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>Micha?l  &amp;lt;orthal@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Richard Quist &amp;lt;rquist_nospam@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;ge4joe$3m1$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; Richard wrote:&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; It appears to be a problem with accessing the mex file in a private&lt;br&gt;
&amp;gt;&amp;gt; directory. &lt;br&gt;
&amp;gt;&amp;gt; I've asked internally about the issue and will post again when I know&lt;br&gt;
&amp;gt;&amp;gt; more. As &lt;br&gt;
&amp;gt;&amp;gt; an interim workaround, it should be possible to copy the gscript.mexw32&lt;br&gt;
&amp;gt;&amp;gt; file &lt;br&gt;
&amp;gt;&amp;gt; into the same directory as the ps2pdf.m file&lt;br&gt;
&amp;gt;&amp;gt; -- &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I've tried this workaround (to include the gscript.mexw32 file with the&lt;br&gt;
&amp;gt; &quot;others files&quot; of the deploy tool).  It works well in an executable runned&lt;br&gt;
&amp;gt; on a Matlab equiped computer but fails on a computer equiped only with the&lt;br&gt;
&amp;gt; MCR (v78). &lt;br&gt;
&amp;gt;  &lt;br&gt;
&amp;gt; Any thought?&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Do you have a copy of ghostscript properly installed and on the search path&lt;br&gt;
of the machine with only the MCR?&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott              &lt;br&gt;
Energy Consultant                  </description>
    </item>
    <item>
      <pubDate>Thu, 13 Nov 2008 15:45:05 -0500</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#610718</link>
      <author>Micha?l </author>
      <description>tristram.scott@ntlworld.com (Tristram Scott) wrote in message &amp;lt;MH0Rk.2556$QF4.959@newsfe13.ams2&amp;gt;...&lt;br&gt;
&amp;gt; Micha?l  &amp;lt;orthal@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Richard Quist &amp;lt;rquist_nospam@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;ge4joe$3m1$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Richard wrote:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; It appears to be a problem with accessing the mex file in a private&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; directory. &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; I've asked internally about the issue and will post again when I know&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; more. As &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; an interim workaround, it should be possible to copy the gscript.mexw32&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; file &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; into the same directory as the ps2pdf.m file&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; -- &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I've tried this workaround (to include the gscript.mexw32 file with the&lt;br&gt;
&amp;gt; &amp;gt; &quot;others files&quot; of the deploy tool).  It works well in an executable runned&lt;br&gt;
&amp;gt; &amp;gt; on a Matlab equiped computer but fails on a computer equiped only with the&lt;br&gt;
&amp;gt; &amp;gt; MCR (v78). &lt;br&gt;
&amp;gt; &amp;gt;  &lt;br&gt;
&amp;gt; &amp;gt; Any thought?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Do you have a copy of ghostscript properly installed and on the search path&lt;br&gt;
&amp;gt; of the machine with only the MCR?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Dr Tristram J. Scott              &lt;br&gt;
&amp;gt; Energy Consultant                  &lt;br&gt;
&lt;br&gt;
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.  &lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Micha?l</description>
    </item>
    <item>
      <pubDate>Fri, 14 Nov 2008 10:14:16 -0500</pubDate>
      <title>Re: Report Generator - Export Figures to PDF in Vector format</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236977#610869</link>
      <author>tristram.scott@ntlworld.com (Tristram Scott)</author>
      <description>Micha?l  &amp;lt;orthal@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; tristram.scott@ntlworld.com (Tristram Scott) wrote in message &amp;lt;MH0Rk.2556$QF4.959@newsfe13.ams2&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Do you have a copy of ghostscript properly installed and on the search path&lt;br&gt;
&amp;gt;&amp;gt; of the machine with only the MCR?&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; My application is going to be distributed to computers on which I'll have&lt;br&gt;
&amp;gt; no control.  That's the reason why I'd like to use internal Matlab (MCR)&lt;br&gt;
&amp;gt; libraries only.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Then, assuming you are going down this ghostscript route, you probably have&lt;br&gt;
two choices.  The first would be to tell the end users that when they&lt;br&gt;
install your application they must also install ghostscript and add it to&lt;br&gt;
the search path.&lt;br&gt;
&lt;br&gt;
The second would be to link to the ghostscript libraries as part of your&lt;br&gt;
build, calling them directly to create the pdf.  You can probably put a&lt;br&gt;
reasonably simple mex wrapper around ghostscript.&lt;br&gt;
&lt;br&gt;
I have no experience with the MATLAB compiler, but I did think it was&lt;br&gt;
possible to have it bundle up an arbitrary list of files together with all&lt;br&gt;
the things it wants for itself.  If that is the case, perhaps you can ask&lt;br&gt;
it to distribute all of ghostscript too?&lt;br&gt;
&lt;br&gt;
Really, though, I think that you seem to be going to an awful lot of effort&lt;br&gt;
to work around something which is essentially a problem with the Report&lt;br&gt;
Generator.  Tell the MathWorks exactly what the problem is, and how much&lt;br&gt;
grief it causes you, and see if they can provide a suitable workaround for&lt;br&gt;
you.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Dr Tristram J. Scott              &lt;br&gt;
Energy Consultant                  </description>
    </item>
  </channel>
</rss>

