Adjust PDF page

MATLAB writes figures to PDF files as a full page. This function corrects that.
564 descargas
Actualizado 24 feb 2012

Ver licencia

By default, when writing a figure window to a PDF file, the figure's content is centered on an A4 or letter-sized page. This is not true for any other file format (EPS, TIFF, PNG, etc, where the bounding box of the resulting graphic, very sensibly, matches that of the figure window). This simple function sets the figure's PaperSize and PaperPosition properties so that the PDF file's bounding box matches that of the figure window.

Example:
<create a nice plot>
adjustpdfpage
print -dpdf figure1.pdf

This function was created using Release 2011b, but should work for earlier releases also.

Citar como

Cris Luengo (2024). Adjust PDF page (https://www.mathworks.com/matlabcentral/fileexchange/35264-adjust-pdf-page), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2011b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Printing and Saving en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0