フィルターのクリア

converting a group of .fig files into .pdf

9 ビュー (過去 30 日間)
Bahareh
Bahareh 2011 年 11 月 29 日
Hello all,
I have about 30 .fig files and would like to convert them into .pdf in one go. Is there an easy way to do it? Thank you.
  2 件のコメント
Walter Roberson
Walter Roberson 2011 年 11 月 29 日
One single .pdf file combining them all, or one .pdf for each .fig ?
If this matter is urgent, it would likely be faster to do the 30 manually rather than waiting for people to respond.
Bahareh
Bahareh 2011 年 11 月 29 日
one .pdf for each .fig; You're right. I thought somebody will respond me fast.

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

採用された回答

Michael
Michael 2011 年 11 月 29 日
Are the files named according to some nice rule? eg. 1.fig, 2.fig, ... maybe you can write a script based on openfig / print (the details may have errors):
for i = 1:30
fig1 = openfig(sprintf('%s.fig', num2str(i)));
print(fig1,'-dpdf',sprintf('%s.pdf', num2str(i)));
close fig1
end
Might need adjustments, I'm not so great at figure handles and .fig files. Hopefully it will load all the figure files, i.jpg (for i = 1:30) then save them as i.pdf so you'd get 1.pdf, 2.pdf... in your current directory.
Mike

その他の回答 (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