How do I scale my gui to a pdf without loosing some visual data?

조회 수: 1 (최근 30일)
Mikkel Ibsen
Mikkel Ibsen 2017년 10월 31일
답변: Mary Abbott 2017년 11월 2일
Hi
I have this gui where i want to print it to a pdf file so I can use it as an appendix. But when I try to print it, it changes my table column names where it doesnt show everyting. I've taken a screenshot of the pdf print and the gui program infront. The only thing i want to do is to make the pdf look like the gui, without resizing it or anything. If i make it a png file it works, (but flips it 90 degrees). But there it doesnt change the column width so the user can read the hole thing.
So my question: How do I make my gui fit inside a A4 pdf landscape plot without changing anything?
Best regards Mikkel Ibsen

채택된 답변

Mary Abbott
Mary Abbott 2017년 11월 2일
It looks like the column names are being printed in the PDF in a mono-spaced font instead of the font used in the GUI. This is a known issue in some releases of MATLAB. Some possible workarounds are:
1. If your computer is able to print to a PDF from the basic printing menu, then you can use that to avoid the mono-spacing. To do this, first make the menu bar visible in your GUI by executing the following:
f = paelegui; % get handle to GUI
% configure GUI however you would like to print it
set(f, 'MenuBar', 'figure');
Then, go to File > Print and print to a PDF from that menu.
2. Print to a different format such as PNG, as you were doing before. You can correct the 90 degree rotation by setting the "PaperOrientation" property of the figure to "portrait":
set(f, 'PaperOrientation', 'portrait')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by