Insert vector graphic from Matlab to Word

40 vues (au cours des 30 derniers jours)
Rafael Kübler
Rafael Kübler le 19 Oct 2016
Hello together,
i know its a often discussed topic. But i haven't found any solution for me. I have some plots, which i need to import in Word 2013 afterwards the docx is saved as pdf.
The problem is:
If the plot gets saved (with the function print() ) as .eps or emf and imported in Word, the downsampled placeholder of the graphics look pretty poor and the graphics in pdf are no vector grapic anymore. They do get turned into a bitmap and by zooming in a bit, one can see the pixels. If i use Edit -> Copy Figure in the Matlab figure and paste it in Word, i get a nice graphic in Word as well as a nice vector based graphic in the pdf file.
Is there a way, to save a figure to a file and import it to Word and have the same quality like i have by copy and paste? What is the difference between these methods?
Thank you for your help.
Rafael

Réponse acceptée

Jan
Jan le 19 Oct 2016
Export the graphics using print to EPS creates pixel images, when the OpenGL renderer is active. So try to enable 'Painters' manually bevor printing:
set(FigureH, 'Renderer', 'painters');
Even then the pixel preview of the vector file is displayed in Word, but only on the monitor. When exported to a PDF the vector graphics are embedded.
  4 commentaires
Erik Petrini
Erik Petrini le 29 Mar 2018
I would really need a working solution for Simulink system plots. The following snags are plaguing me:
You cannot save Simulink block diagrams in PostScript or EPS formats.
SVG format corrupts the font and is not recognized by word 2010 which is the version available to me in my organization.
PDF format import in words always corrupts the final text annotation of any system export (it is not imported as part of picture but rather as malformed text in the end).
EMF is not available since our organization runs Matlab (2016b) on CentOS.
Out of options for vector graphics (?)
If at least there was some way to get PDF export/import to work bug-free that would be a viable way forward.
Michael Vladimirov
Michael Vladimirov le 9 Déc 2020
This is a very old thread, but for anyone reading in the future:
Translation begween PDF and EPS formats (as well as DXF/DWG) is pretty trivial with most vector art platforms (Adobe Illustrator, InkScape, etc) and there are countless free online converters availble, too.
Also, Simulink (as of summer 2019) has a super reliable block diagram PDF export. Simply print your your Simulink project, but select print as PDF instead of the printer you would normally use. I've used this feature multiple times for some fairly complex projects, never had a single issue.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by