print a figure into PDF

16 ビュー (過去 30 日間)
Haozi
Haozi 2011 年 8 月 1 日
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 件のコメント
Jan
Jan 2011 年 8 月 2 日
Please explain, which method you are using for printing: PRINT, the print-menu, saveas or a PDF printer driver?
Haozi
Haozi 2011 年 9 月 13 日
I used the print menu, then select PDF from the list. Thanks!

サインインしてコメントする。

採用された回答

Jan
Jan 2011 年 9 月 14 日
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 件のコメント
Haozi
Haozi 2011 年 9 月 14 日
Thanks, I'll try.

サインインしてコメントする。

その他の回答 (1 件)

Sreeram Mohan
Sreeram Mohan 2011 年 9 月 14 日
Have u tried out the file submission here ?
Seems like there is a programmatic way of achieving this
Thanks, Sreeram

カテゴリ

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