How print a GUI to pdf with good quality?

5 views (last 30 days)
I want to print a GUI to pdf. I use the following code:
print(f, '-dpdf', 'Filename.pdf')
where f is the handle of the GUI. However the quality of the pdf is not satisfying. All the texts are a bit blurred. What can I do to improve the quality?

Accepted Answer

the cyclist
the cyclist on 26 May 2014
You can increase the resolution by adding '-r600' (or higher number) as an additional argument.
  2 Comments
Tobias Benjamin Gram
Tobias Benjamin Gram on 15 Sep 2014
It will not help on the text, ui panels and pushbutton, only the figures. Do you have another solution? I used this code:
print(hMainGui,'test','-dpdf','-r2000','-painters')
Iain
Iain on 15 Sep 2014
You might get benefit by changing the figure properties - paperposition is one that comes to mind that may be important. You can also make the text larger by increasing font size.

Sign in to comment.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!