Path: news.mathworks.com!not-for-mail
From: "Richard " <richard.germuska@nhs.net>
Newsgroups: comp.soft-sys.matlab
Subject: Report Generator - Export Figures to PDF in Vector format
Date: Mon, 13 Oct 2008 11:42:02 +0000 (UTC)
Organization: Quiet Mountain Ltd
Lines: 31
Message-ID: <gcvc6a$ka4$1@fred.mathworks.com>
References: <gc5d1d$bn$1@fred.mathworks.com>
Reply-To: "Richard " <richard.germuska@nhs.net>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1223898122 20804 172.30.248.37 (13 Oct 2008 11:42:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 13 Oct 2008 11:42:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1530058
Xref: news.mathworks.com comp.soft-sys.matlab:494868

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 


"Richard " <richard.germuska@nhs.net> wrote in message <gc5d1d$bn$1@fred.mathworks.com>...
> Hi there,
> 
> I'm trying to export figures to PDF files using Report Generator but am just getting a blank PDF with no figure inside.
> 
> I need the final figure to be in vector format so that it can be scaled in PDF viewer.
> 
> To do this I am specifying the 'Image File Format'of my 'Figure Snapshot' to be 'Color Encapsulated Postscript2'.
> 
> However this just outputs a PDF file, with no figure included.
> 
> 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?
> 
> Many thanks for any help, Rich