SVG images are rasterized (pixelated) when exporting DOCX to PDF

Imported from UserVoice

Author: Alexey

When a DOCX document containing an SVG image (e.g. a vector logo or coat of arms) is exported to PDF, the SVG is rasterized instead of being preserved as a vector object. The result is a blurry, low-quality image in the PDF, especially noticeable when zooming in or printing.

Steps to reproduce:

  1. Insert an SVG image into a DOCX document.
  2. Export / Save As PDF.
  3. Open the resulting PDF — the SVG appears pixelated/blurry.

Expected behavior:
SVG images should be embedded as vector graphics in the PDF output, just as Microsoft Word does.

Actual behavior:
SVG is converted to a low-resolution raster image before being written to the PDF.

Environment:

  • OS: Linux
  • App: ONLYOFFICE Desktop Editors

This issue has also been reported in GitHub issue #2762 (DocumentServer). A partial fix was mentioned in v8.2.1 changelog, but the problem still occurs for many SVG files. Please implement proper SVG-to-PDF vector passthrough.