Path: news.mathworks.com!not-for-mail
From: "aasim Azooz" <aasimazooz@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Printing Plots in PDF format
Date: Sat, 26 Jul 2008 18:24:02 +0000 (UTC)
Organization: Mosul University
Lines: 42
Message-ID: <g6fq42$qh1$1@fred.mathworks.com>
References: <g6d752$3oa$1@fred.mathworks.com>
Reply-To: "aasim Azooz" <aasimazooz@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1217096642 27169 172.30.248.35 (26 Jul 2008 18:24:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 26 Jul 2008 18:24:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 277505
Xref: news.mathworks.com comp.soft-sys.matlab:481978



"Naveen " <nkunam@bloomberg.net> wrote in message <g6d752
$3oa$1@fred.mathworks.com>...
> Hi, 
> Iam trying to create a bunch of plots, and print them to 
> pdf file. I am saving all my plots in figs() and if i 
> print them one by one into PDF file it works. But i like 
> to append them all together into one PDF file. I am 
unable 
> to do this. Any help is appreciated very much. Thanks in 
> advance. Best, Naveen
> 
> % Print each of the 10 plots in a separate PDF document. 
> 
> print(figs(1),'-dpdf','-r600','-painters','test1.pdf')
> print(figs(2),'-dpdf','-r600','-painters','test2.pdf')
> print(figs(3),'-dpdf','-r600','-painters','test3.pdf')
> print(figs(4),'-dpdf','-r600','-painters','test4.pdf')
> print(figs(5),'-dpdf','-r600','-painters','test5.pdf')
> print(figs(6),'-dpdf','-r600','-painters','test6.pdf')
> print(figs(7),'-dpdf','-r600','-painters','test7.pdf')
> print(figs(8),'-dpdf','-r600','-painters','test8.pdf')  
> print(figs(9),'-dpdf','-r600','-
painters','test9.pdf')     
> print(figs(10),'-dpdf','-r600','-painters','test10.pdf')  
> 
> % Print all the 10 plots into one PDF document. 
> 
> print(figs(1),'-dpdf','-r600','-painters','test.pdf');
> for i=2:length(figs)
>         print(figs(i),'-append','-dpdf','-r600','-
> painters','test.pdf');
> end

Dear Naveen
MATLAB is very powerful but at times, it is more easy to do 
things outside matlab. For a problem like the one you 
presented, I will copy all my figures, paste them to an 
office word text document, and use the pdf995 program to 
convert the file to pdf. the 995 can be freely downloded.

Aasim Azooz