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 Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by