External OT - Custom PDF transform fails with Oxygen 17.0
Posted: Wed May 13, 2015 12:56 am
Background
Currently we use Oxygen 16.1. Our custom PDF plugin is in an external OT (v1.7) and works with no problems. Our custom transform scenario references jars in the external OT rather than those in the Oxygen path. We downloaded a trial of Oxygen 17.0 to test it with our PDF plugin. We replicated a DITA MAP transform and added the custom parameters, including the jars for the external OT.
Problem
The PDF builds but we get a severe error related to SVG graphics:
As a result, the SVGs are not copied to the PDF.
Notes
- This issue does not occur with Oxygen 16.1 running the transform in the external OT. The libraries classpath is the same in both versions.
- This issue disappears with Oxygen 17.0 if we allow Oxygen to add high-priority libraries to classpath.
- the xmlgraphics-commons-1.5.jar does appear to be referenced correctly in our classpath:
C:\DITA\PDF\DITA-OT\plugins\org.dita.pdf2\fop\lib\xmlgraphics-commons-1.5.jar
Here are the libraries referenced in the classpath:
Currently we use Oxygen 16.1. Our custom PDF plugin is in an external OT (v1.7) and works with no problems. Our custom transform scenario references jars in the external OT rather than those in the Oxygen path. We downloaded a trial of Oxygen 17.0 to test it with our PDF plugin. We replicated a DITA MAP transform and added the custom parameters, including the jars for the external OT.
Problem
The PDF builds but we get a severe error related to SVG graphics:
Code: Select all
May 12, 2015 5:37:15 PM org.apache.fop.events.LoggingEventListener processEvent
[fop] SEVERE: Image not available. URI: file:/C:/Workspace/Documentation/Dev/src/images/architecture.svg. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file:/C:/Workspace/Documentation/Dev/src/images/architecture.svg (See position 85:-1)
[fop] org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file:/C:/Workspace/Documentation/Dev/src/images/architecture.svg
Notes
- This issue does not occur with Oxygen 16.1 running the transform in the external OT. The libraries classpath is the same in both versions.
- This issue disappears with Oxygen 17.0 if we allow Oxygen to add high-priority libraries to classpath.
- the xmlgraphics-commons-1.5.jar does appear to be referenced correctly in our classpath:
C:\DITA\PDF\DITA-OT\plugins\org.dita.pdf2\fop\lib\xmlgraphics-commons-1.5.jar
Here are the libraries referenced in the classpath:
Code: Select all
${configured.ditaot.dir.url}/lib
${configured.ditaot.dir.url}/lib/saxon/saxon9.jar
${configured.ditaot.dir.url}/lib/saxon/saxon9-dom.jar
${configured.ditaot.dir.url}/lib/dost.jar
${configured.ditaot.dir.url}/lib/dost-patches.jar
${configured.ditaot.dir.url}/lib/xml-apis.jar
${configured.ditaot.dir.url}/lib/xercesImpl.jar
${configured.ditaot.dir.url}/lib/icu4j.jar
${configured.ditaot.dir.url}/lib/commons-codec-1.4.jar
${configured.ditaot.dir.url}/lib/resolver.jar
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/lib/fo.jar
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/fop/lib/
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/fop/lib/avalon-framework-4.2.0.jar
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/fop/lib/batik-all-1.7.jar
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/fop/lib/commons-io-1.3.1.jar
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/fop/lib/serializer-2.7.0.jar
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/fop/lib/xalan-2.7.0.jar
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/fop/lib/xercesImpl-2.7.1.jar
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/fop/lib/xml-apis-1.3.04.jar
${configured.ditaot.dir.url}/plugins/org.dita.pdf2/fop/lib/xmlgraphics-commons-1.5.jar