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

15 次查看(过去 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 CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by