DocBook pdf transformation: broken SVG graphics
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 3
- Joined: Thu Jul 10, 2008 5:55 am
DocBook pdf transformation: broken SVG graphics
When performing the standard pdf translation on a DocBook document, everything works beautifully except my svg format graphics are garbled and partially missing in the pdf document. Pixel format graphics such as png or jpg do not suffer this problem. Is there perhaps something wrong with my svg files?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DocBook pdf transformation: broken SVG graphics
Post by sorin_ristache »
Hello,
The FO processor that comes with Oxygen should render a SVG image in the PDF result without problems if the image is included in the DocBook document with an imagedata element that has the attribute format="SVG". Are your SVG files valid? You can check them with this SVG schema.
Regards,
Sorin
The FO processor that comes with Oxygen should render a SVG image in the PDF result without problems if the image is included in the DocBook document with an imagedata element that has the attribute format="SVG". Are your SVG files valid? You can check them with this SVG schema.
Regards,
Sorin
-
- Posts: 3
- Joined: Thu Jul 10, 2008 5:55 am
Re: DocBook pdf transformation: broken SVG graphics
The SVG files validate with the supplied schema - if I use the relax ng schema that you linked to above, I get the following error message:
SystemID: C:\Program Files\Oxygen XML Editor 9\frameworks\svg\dtd\Full-1.2.rng
Description: org.xml.sax.SAXParseException-no implementation available for schema language with namespace URI "http://www.w3.org/1999/xhtml"
The SVG rendered to a PDF is missing most of the text, colours are wrong and various of the lines are drawn in the incorrect weight or are dashed instead of solid. It displays perfectly in Author and all other applications.
SystemID: C:\Program Files\Oxygen XML Editor 9\frameworks\svg\dtd\Full-1.2.rng
Description: org.xml.sax.SAXParseException-no implementation available for schema language with namespace URI "http://www.w3.org/1999/xhtml"
The SVG rendered to a PDF is missing most of the text, colours are wrong and various of the lines are drawn in the incorrect weight or are dashed instead of solid. It displays perfectly in Author and all other applications.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DocBook pdf transformation: broken SVG graphics
Post by sorin_ristache »
Hello,
It could be a problem in the SVG renderer included in the FO processor that comes with Oxygen and is used by default for generating PDF files. Can you send us one or more SVG images that are not rendered correctly to see what is wrong? The SVG images that we tested are rendered correctly in PDF results of the transformations executed in Oxygen.
You can set up XEP as external FO processor using the Browse button of the FO processor preferences panel. For using it in transformations that generate PDF results just select XEP instead of the default FO processor in the FO Processor tab of the dialog for editing a transformation scenario.
Regards,
Sorin
It could be a problem in the SVG renderer included in the FO processor that comes with Oxygen and is used by default for generating PDF files. Can you send us one or more SVG images that are not rendered correctly to see what is wrong? The SVG images that we tested are rendered correctly in PDF results of the transformations executed in Oxygen.
You can set up XEP as external FO processor using the Browse button of the FO processor preferences panel. For using it in transformations that generate PDF results just select XEP instead of the default FO processor in the FO Processor tab of the dialog for editing a transformation scenario.
Regards,
Sorin
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