필터 지우기
필터 지우기

Insert vector graphic from Matlab to Word

조회 수: 36 (최근 30일)
Rafael Kübler
Rafael Kübler 2016년 10월 19일
댓글: Michael Vladimirov 2020년 12월 9일
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

채택된 답변

Jan
Jan 2016년 10월 19일
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
Erik Petrini
Erik Petrini 2018년 3월 29일
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 2020년 12월 9일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by