フィルターのクリア

The "print" function is losing support for ".ps" format in a future release. Does this mean the "-append" option will no longer exist?

18 ビュー (過去 30 日間)
I have a rather large body of code that uses print('outfilename','-dpsc','-append') to generate stadardized reports.
As of release 2023b I'm getting a warning:
"Warning: PostScript format 'ps' will not be supported in a future release. "
I need the "-append" option, which only works for "full page postscript files," or I need a good workaround.
Ideally, Mathworks will choose to continue supporting postscript or will add the append option to other formats.
Any suggestions for a workaround in case they don't ?

採用された回答

Aiswarya
Aiswarya 2023 年 11 月 14 日
Hi,
I understand that you want to use the append option with print function and according to the documentation it is only supported for PS(PostScript format) files. You want to know if there is some workaround to append figures if this support is discontinued.
You can use the 'exportgraphics' function and use the append option in it to create multipage PDF files. The following link illustrates an example for the same: https://www.mathworks.com/help/matlab/ref/exportgraphics.html#mw_a4544e80-5ff4-4859-afa2-0d4cc627bb5e
If you want to export as vector graphics (like in PostScript), set the "ContentType" attribute to "vector". You may refer to the following documentation to know more about the workaround : https://www.mathworks.com/help/matlab/ref/print.html#mw_cbc9c910-74be-4208-8a13-385ef4122b67
  1 件のコメント
Mike Shives
Mike Shives 2023 年 11 月 21 日
This works but vector graphics look horrible at some zoom levels, and raster graphics also don't look good when viewed in Adobe.
I've resorted to using "export_fig.m" fom the file exchange. I used this over a decade ago when writing my thesis. You'd think Mathworks would figure out how to embed fonts correctly into a pdf file by now....

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by