MATLAB: How print a GUI to pdf with good quality

MATLABmatlab guiprintf

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?

Best Answer

You can increase the resolution by adding '-r600' (or higher number) as an additional argument.