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

1 次查看(过去 30 天)
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 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by