Corrupted SVG images in PDF build

77 Views Asked by At

I am embedding external svg images in my PDF build process (which uses DITA-OT & Apache Ant) but some of the images are coming out corrupted. The images are MathMl equations generated by MathJax:

Good Equation opened in browser

Corrupted Equation in PDF

Note the distortion on the right paren.

Has anyone ever seen similar? Is there a fix?

I investigated the internal settings of Ant & RenderX, but neither had an impact.

EDIT:

I've added the clipped image in higher resolution to better display the issues:

Original example Original example

Another example (see the K) https://i.stack.imgur.com/YrPYE.png

EDIT #2

Here's the original SVG file:

I hope filetransfer.io is OK

1

There are 1 best solutions below

1
Mario Di Giacomo On

I was able to determine, with the aid of RenderX themselves, that this is due to an internal bug in XEP. They have a patch that works with the latest version.