Path: news.mathworks.com!not-for-mail
From: Richard Quist <rquist_nospam@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Report Generator - Export Figures to PDF in Vector format
Date: Tue, 14 Oct 2008 09:28:32 -0400
Organization: The MathWorks
Lines: 29
Message-ID: <gd26q0$73f$1@fred.mathworks.com>
References: <gc5d1d$bn$1@fred.mathworks.com> <gcvc6a$ka4$1@fred.mathworks.com>
Reply-To: rquist_nospam@mathworks.com
NNTP-Posting-Host: quistr.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1223990912 7279 144.212.107.174 (14 Oct 2008 13:28:32 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 14 Oct 2008 13:28:32 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
In-Reply-To: <gcvc6a$ka4$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:495079

Richard wrote:
> UPDATE
> 
> 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.
> 
> This is now a known issue and the developers are working to resolve it for a future as yet unspecified release.
> 
> 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.
> 
> I am looking into a solution for creating multi-page PDF documents via the -dpdf command.
> 
> 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.
> 
> 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.
> 
> Cheers, Rich 
> 
The ps2pdf function I submitted to the File Exchange (available from here:
http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1097474&objectType=author) 
will create a pdf file from a specified postscript file. Since MATLAB supports 
creating multi-page postscript files (using the -append option of the print 
command) you can create multi-page pdf files with this utility.

Hope that helps.
-- 

Richard Quist
Software Developer
The MathWorks, Inc.