When I save a figure as a postscript or pdf the figure is saved as a collection of images rather than the individual objects. I recently upgraded my Matlab from 2010a to 2016a and do not have this problem using the 2010a version. Please advise!
11 次查看(过去 30 天)
显示 更早的评论
When I save a figure as a postscript or pdf the figure is saved as a collection of images rather than the individual objects. I recently upgraded my Matlab from 2010a to 2016a and do not have this problem using the 2010a version. Please advise how to fix this in my script!
0 个评论
回答(1 个)
Richard Quist
2016-5-23
If MATLAB thinks the figure is too complicated it will produce an embedded image in the output file, rather than vectorized (editable) content. You can force MATLAB to produce vectorized output by using the -painters option when calling the print command, as in:
print -painters -dpsc output.ps
or
print -painters -dpdf output.pdf
The output files will then contain vectorized content instead of embedded images.
See the Vector Graphics File discussion in the description of the formattype input argument in the documentation of the print command for more details.
2 个评论
Pablo Blazquez
2020-9-15
Thanks a lot Richard. It also worked for me! Can you append several pages in a single pdf file using "print -painters"?
Thanks
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!