14

Microsoft recently added SVG support to Word 2016. But when trying to save a document containing a SVG vector graphic as PDF the graphic will be converted to a raster image.

I tried to change the Image Size and Quality Options (-> "do not compress images in file" and "high fidelity") but this had no effect whats-o-ever. My second approach was to use the "Microsoft Print to PDF"-printer but this didn't preserve the graphics either.

Is there a way to preserve the scalability of my graphics when saving to document as pdf? Is there somewhere an option in the settings that I haven't discovered yet?

If this is only a SVG issue: Which other vector graphics format will work better?

Peter
  • 189
  • 1
  • 1
  • 8
  • FWIW, newer versions of Word (2019+) seem to do a good job of preserving SVG in PDF files. – bfris Apr 21 '21 at 16:09
  • @bfris, how do you preserve the SVG? I'm using MS Word version 2304, and have an SVG image with text that is crystal clear when zoomed to 1000%, but when I save to PDF it converts to raster and the text becomes unreadable. – Joe May 15 '23 at 12:30
  • @Joe, I just made file using Version 1808 and a few SVGs. Doing File....Save As.... or File...Export seem to use the same command and there are really no options. I used some [test files from here](https://dev.w3.org/SVG/profiles/1.1F2/test/svg/) and most things worked, EXCEPT gradient fills. When Word encountered a gradient fill it converted to raster. PDF files opened in Inkscape preserved paths and solid fills. – bfris May 15 '23 at 18:07
  • @bfris, I've tried every online solution I can find: saving as Adobe PDF, changing Advanced File>Options about image quality, changing the Options under File>Save As, but no matter what my SVG gets rasterized. I would have given up by now if it weren't for claims that Word does preserve SVG now. However, I'm just going to assume that there are only random magical versions like 1808 for which this works, while I'm stuck on version 2304. – Joe May 15 '23 at 22:38

6 Answers6

5

In response to your final question:

"If this is only a SVG issue: Which other vector graphics format will work better?"

For years the only vector format that Word supported was Microsoft's proprietary .emf file format. If you encounter further issues, you can always try converting your .svg to .emf. Inkscape can export as .emf, and in my experience it's a much more accurate conversion than Adobe Illustrator.

Incidentally, the workaround that Andrew posted - copying the SVG to clipboard and using "Paste Special" to paste it into Word as a "Picture (Enhanced Metafile)" - works by converting your clipboard data into an .emf file. However there are a few times when exporting the image as .emf from Inkscape directly would be preferable, for instance when you want to preserve a buffer of blank space around your graphic (using the clipboard method will not select blank space).

foolishgrunt
  • 51
  • 1
  • 3
  • Converting SVG to emf causes loss of details. I had an SVG graphic with dashed lines and they disappeared when I converted to emf using inkscape. – Rudolph Jun 10 '23 at 02:48
  • Loss of detail is, unfortunately, par for the course when converting between file formats. I've managed to convert smaller/less detailed vector files without significant issues, but in cases such as you describe, you will surely have to engage in "cleanup" after the conversion. Clearly, whenever possible, the better option is to leave as SVG. However at least initially, SVG support was limited to Office 365 (now Microsoft 365) versions, so .emf was the best/only option for standalone licensees. I do not know if this is still the case. – foolishgrunt Jun 14 '23 at 04:35
2

I have Adobe Acrobat X Pro 10.1.16.13 installed, which gives me a Save as PDF file option in Word 2016 that does put the SVG graphic into the PDF file as a vector graphic.

I user Insert|Picture to get the SVG graphic files into word.

A 70K SVG file, for example, slows down the editing in Word significantly, so I put placeholder JPG or PNG graphics in the Word file until the final draft, then I replace them with SVG files as the last step before saving as PDF.

2

Microsoft seems to have improved SVG support in Word. SVG vector graphics are now perfectly preserved when saving the document as PDF.

(I'm using Office version 1806)

Peter
  • 189
  • 1
  • 1
  • 8
  • 5
    Some SVGs generated by matplotlib (python) are still not saved as SVG (saved as images) – Lilo Sep 04 '18 at 19:53
  • They are not perfectly preserved for my here in 2023 on MS Word version 2304. The vector graphics which scale perfectly in the word doc get converted to blurry raster graphics when saving to PDF. – Joe May 15 '23 at 12:09
  • They are not preserved. Version 2202 Build 16.0.14931.21000) 64-bit. Printed using Microsoft Print to PDF. – Rudolph Jun 02 '23 at 03:04
1

Ran into this issue today also. SVG seems to be broken in Word. One way I have found to preserve the scalability of graphics in PDF output from Word is:

  1. Open the SVG in Inkscape
  2. Select all and Copy to Clipboard
  3. Using Paste Special in Word (Alt+E,S) paste it into the document as a "Picture (Enhanced Metafile)"

I believe this also works in previous versions of Word at least as far back as 2013 and 2010.

Andrew
  • 11
  • 2
  • Thanks for this workaround! It does work with Adobe Illustrator as well. Still, the paths of the vector graphics in the resulting PDF are slightly distorted and not exactly at their original position. The shortcut for Special Paste should be Ctrl+Alt+V – Peter May 21 '17 at 13:32
  • I confirm it works in 2010, make sure to copy as enhanced metafile else you can get strange results (some text disappear in my case) – wotter Mar 30 '18 at 16:24
  • I can confirm @Peter's response that SVG support has much improved. I'm currently using Version 1902. – Jason Morse Aug 02 '19 at 04:33
0

I just solved the problem by doing export directly from OneDrive online. Probably it happens because online word version is html-based and it has better treatment for svg.

Alexander Nozik
  • 440
  • 6
  • 11
0

I solved this yesterday and hope the answer works for you.

The graphic was cropped at first in your Word (my version is 2019)? In my case, if I insert the SVG graphics without cropping, the SVG graphic works well in PDF. While if the SVG graphic was cropped before converting to the PDF, it will collapse. It has nothing to do with the resolution.

Besides, my SVG graphics were generated by Python. If you need to crop the images to adjust the size, "Inksacpe" software is a good choice.