Multiple Figures to PDF's

475 views (last 30 days)
Jennifer on 16 Sep 2011
Answered: Nikhil Sapre on 10 Nov 2021
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.

Answers (3)

Oliver Woodford
Oliver Woodford on 17 Sep 2011
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.
Nabin Prajapati
Nabin Prajapati on 28 Jan 2021
Hi Carlo,
im facing similar problem.. could you kindly post your code here, how did you export all figure in one pd?

Sign in to comment.

Fangjun Jiang
Fangjun Jiang on 16 Sep 2011
You could use print() to print each figure into a .pdf file and then use a third party tool to combine them.

Nikhil Sapre
Nikhil Sapre on 10 Nov 2021
Release 2021b now supports exporting to a multipage pdf using the exportgraphics function


Find more on Printing and Saving in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!