print a figure into PDF

Hi,
I want to print a matlab .fig into .pdf, but only the center part of the figure is shown on the .pdf file. Do you know how to solve this?
Thanks!

2 个评论

Please explain, which method you are using for printing: PRINT, the print-menu, saveas or a PDF printer driver?
I used the print menu, then select PDF from the list. Thanks!

请先登录,再进行评论。

 采纳的回答

I guess, that you have a fixed PaperPosition, which is outside the visible range. Try this:
figure('PaperPositionMode', 'auto');
plot(rand(10));
print(gcf, '-dpdf', 'test.pdf');
You can set the PaperPosition in the Print-GUI also.

更多回答(1 个)

Sreeram Mohan
Sreeram Mohan 2011-9-14

0 个投票

Have u tried out the file submission here ?
Seems like there is a programmatic way of achieving this
Thanks, Sreeram

类别

在 帮助中心 和 File 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