Rendering SVG Images in PDF
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 7
- Joined: Wed Jul 26, 2023 7:45 pm
Rendering SVG Images in PDF
Hello. I am regularly seeing issues where embedded SVG images are being rendered slightly incorrectly in PDF. Nothing major, but slightly distorted lines. I've attached examples of both good (from a web browser) and bad for reference.
good-equation.png
bad-equation.png
Does this look familiar to anyone?You do not have the required permissions to view the files attached to this post.
-
- Posts: 663
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Rendering SVG Images in PDF
Post by julien_lacour »
Hello,
Could you attach the SVG file too? I will try to reproduce the problem on our side.
Could you also indicate which Oxygen version and which transformation scenario you are using?
Regards,
Julien
Could you attach the SVG file too? I will try to reproduce the problem on our side.
Could you also indicate which Oxygen version and which transformation scenario you are using?
Regards,
Julien
-
- Posts: 7
- Joined: Wed Jul 26, 2023 7:45 pm
Re: Rendering SVG Images in PDF
I'm not using a transformation scenario but a custom XML FO plugin. I've attached the SVG below.
equation_3.zip
Please note that this is loaded into the target XML as an externl image, not inline.You do not have the required permissions to view the files attached to this post.
Last edited by Mario on Thu Jul 27, 2023 2:54 pm, edited 1 time in total.
-
- Posts: 663
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Rendering SVG Images in PDF
Post by julien_lacour »
Hello,
I've tested using <oXygen/> XML Editor 25.1, build 2023070306, with the following scenario (as I don't have your plugin, it's the closest I've found):
So I modified these values in a new file and try to run again the transformation:
Could you indicate which Oxygen version you are using? And if you are using the built-in Engine or an external DITA-OT?
Side Note: Using the DITA Map PDF - based on HTML5 & CSS scenario, both SVGs are rendered correctly.
Regards,
Julien
I've tested using <oXygen/> XML Editor 25.1, build 2023070306, with the following scenario (as I don't have your plugin, it's the closest I've found):
- The image is inserted as follows:
Code: Select all
<image placement="break" href="equation_3.svg"/>
- The DITA Map PDF - based on XSL-FO transformation is launched
So I modified these values in a new file and try to run again the transformation:
equation_3_bis.zip
But the result is correctly rendered:
image.png
Could you try to use the equation_3_bis.svg image in your scenario? Is the problem still present?Could you indicate which Oxygen version you are using? And if you are using the built-in Engine or an external DITA-OT?
Side Note: Using the DITA Map PDF - based on HTML5 & CSS scenario, both SVGs are rendered correctly.
Regards,
Julien
You do not have the required permissions to view the files attached to this post.
-
- Posts: 7
- Joined: Wed Jul 26, 2023 7:45 pm
Re: Rendering SVG Images in PDF
I've tested with the new SVG, and it looks the same. I am not rendering PDF in Oxygen, but using a custom DITA-OT plugin using Ant & RenderX. I strongly suspect it's the latter tool that's the issue.
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service