필터 지우기
필터 지우기

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 CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by