Change Publish PDF Page Margins

조회 수: 4 (최근 30일)
Nick
Nick 2013년 8월 23일
답변: Aniket 2025년 5월 8일
Hello,
Is it possible to change the page margins when creating a PDF using Publish? I poked around the "Edit Publishing Options..." gui, but didn't see anything.
Thanks!
  댓글 수: 1
Hugh
Hugh 2015년 10월 9일
not looking good for 2015 per this discussion

댓글을 달려면 로그인하십시오.

답변 (1개)

Aniket
Aniket 2025년 5월 8일
Hi @Nick,
As of R2024b, Publish does not provide an option to change the page margins when creating a PDF for .m files.
However, the export option does provide this functionality for exporting Live Scripts and Functions. Kindly follow the below mentioned steps to change page margins:
  1. Right click MATLAB editor file in folder directory panel and click "Open as Live Function". If the file is a live editor file, this step is not required.
  2. In toolstrip, navigate to Live Editor --> File --> Export --> Export to PDF
  3. Click "Show more" to expand the export options
  4. Change the paper size, orientation, and margins
  5. Finally click "Export"
You can find more information regarding export function in this documentation: https://www.mathworks.com/help/matlab/ref/export.html
Hope this helps achieve the functionality required!

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by