SAVE2PDF saves a figure as a PDF as it appears on the screen. SAVE2PDF is stand-alone and simple--it does not require a separate installation of ghostscript. It saves figures as they appear on the screen, with the correct page size. It has the option to change the resolution to be print-quality.
SAVE2PDF is particularly useful for LaTex users who want to generate PDFs to include when compiling with pdftex. The vector art information is preserved.
This function simply augments the built in print-to-pdf functionality of Matlab by resizing the output PDF and shifting the displayed plot.
Gabe Hoffmann (2021). save2pdf (https://www.mathworks.com/matlabcentral/fileexchange/16179-save2pdf), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Equilibria of economical models with cost of change, Simulation of von Kármán viscoelastic plates, Save figures Shortcut, saveas2.m v1.1 (Sep 2009), Modeling and Design Analysis of a Permanent Magnet Linear Synchronous Generator
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!