How can I save a PDF without margins
39 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear all,
I think since Release 2019b there exists a new save as button, which can be accessed in a figure plot. It is possible to save the figure as a .pdf and it is perfectly cropped.

Although, if a figure is saved, using the command saveas(figure(1), 'name','pdf') the figure has a lot of white space and is not cropped well enough.
Is it possible to access the same "save as" functionality from the command line as seen in the attached picture?
Kind regards
Philipp
0 comentarios
Respuestas (3)
Sulaymon Eshkabilov
el 9 de Oct. de 2019
Hi,
you can try to use this option:
print('-fillpage','FillPageFigure','-dpdf')
good luck.
0 comentarios
Pavel Snabl
el 20 de Sept. de 2023
Hi,
since the version 2020a there exists this command:
exportgraphics(obj,filename)
which I think does exactly what you are looking for.
Kind regards,
Pavel
0 comentarios
Ver también
Categorías
Más información sobre Printing and Saving en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!