Multiple Figures to PDF's

410 ビュー (過去 30 日間)
Jennifer
Jennifer 2011 年 9 月 16 日
回答済み: Nikhil Sapre 2021 年 11 月 10 日
Hey all,
I'm wondering if there is a way to save multiple figures to a single PDF. I'd like to be able to plot multiple plots first, and then save them all simultaneously to a pdf that appends them all - so I have a single pdf with multiple pages. Is this possible?
p.s. I have done this in the past with some code, but it's quite old and sluggish, I'm wondering if there is a maltab integrated command or series of commands for this.

採用された回答

Nikhil Sapre
Nikhil Sapre 2021 年 11 月 10 日
Release 2021b now supports exporting to a multipage pdf using the exportgraphics function

その他の回答 (2 件)

Oliver Woodford
Oliver Woodford 2011 年 9 月 17 日
Export_fig has an -append option which you can use to save multiple figures to the same PDF. However, this becomes slower the larger the PDF becomes.
Alternatively you can save the figures to separate PDFs (using print or export_fig), then concatenate them all into one PDF using append_pdfs. This is faster when saving many figures.
  2 件のコメント
Carlo antonini
Carlo antonini 2018 年 2 月 5 日
I used Export_fig to a PDF file with the -append option... it works as promised, that means very good! Just add a first figure with "set(gca,'visible','off')" and some explanations using text(x,y,'text), then you'll have a presentation in PDF format ready to be sent via mail
Nabin Prajapati
Nabin Prajapati 2021 年 1 月 28 日
Hi Carlo,
im facing similar problem.. could you kindly post your code here, how did you export all figure in one pd?
Greets

サインインしてコメントする。


Fangjun Jiang
Fangjun Jiang 2011 年 9 月 16 日
You could use print() to print each figure into a .pdf file and then use a third party tool http://www.pdf995.com/ to combine them.

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by