How can I save a PDF without margins
조회 수: 41 (최근 30일)
이전 댓글 표시
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
답변 (3개)
Sulaymon Eshkabilov
2019년 10월 9일
Hi,
you can try to use this option:
print('-fillpage','FillPageFigure','-dpdf')
good luck.
댓글 수: 0
Pavel Snabl
2023년 9월 20일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!