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

13 visualizaciones (últimos 30 días)
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 ?

Respuesta aceptada

Aiswarya
Aiswarya el 14 de Nov. de 2023
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 comentario
Mike Shives
Mike Shives el 21 de Nov. de 2023
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....

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by