Expand a figure in a PDF file

1 次查看(过去 30 天)
Chris
Chris 2022-10-25
回答: Allen 2022-10-25
Hello,
So I'm trying to export an image into a pdf file then maximise the image so it takes up as much space as possible. I've been using saveas(Image,'Output_Image.pdf'); to export the figure. However the image takes up quite a small space in the pdf file. Is there a way to maximise the image so it takes up as much of the pdf file as possible?

回答(1 个)

Allen
Allen 2022-10-25
Chris,
Regular figures have several properties that allow you to control their size when converted to an image, and should work with pdf files too. Not sure if this is valid for UIFigures.
PaperPosition: standard 4-number position vector
PaperOrientation: "portrait" or "landscape"
PaperPositionMode: controls the position of the image on the page. when adjust the above two properties, you may also need to set this to "manual"

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by