PDF-CSS Plugin and DITA OT

Post here questions and problems related to editing and publishing DITA content.
anna_craneo
Posts: 33
Joined: Tue Feb 20, 2018 2:51 pm

PDF-CSS Plugin and DITA OT

Post by anna_craneo »

Hello!

I am using Oxygen XML Editor 19.1 (trial) with PDF chemistry for PDF with CSS transformation. It works perfectly fine when I do the transformation by means of Oxygen, but does not function as expected when I build with DITA OT.

This is the error I get:

Code: Select all

Fatal Error! Cannot find a 1-argument function named {java:ImageInfo}getImageSize(). Reflexive calls to Java methods are not available under Saxon-HE
My DITA OT version is 3.0.1 and I took PDF CSS plugin from here - https://github.com/oxygenxml/dita-ot-css-pdf

Seems like I cannot use PDF chemistry without purchasing additional XSLT transformer Saxonica. Is that correct? Or something should be changed in my actions?
Radu
Posts: 9054
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF-CSS Plugin and DITA OT

Post by Radu »

Hi Anna,

The Saxon libraries which are now bundled with DITA OT 3.x are restricted and can no longer load the Java extensions needed by our plugin.
Because of this reason we have not yet released a version of our plugin which works with a default downloaded DITA OT 3.x.
What you can do (besides paying for a Saxon 9 Enterprise Edition license) is to download DITA OT 2.5.4:

https://github.com/dita-ot/dita-ot/releases/tag/2.5.4

and either use it with our plugin or look inside it in the "DITA-OT\lib" folder and it has two Saxon 9 libraries "saxon-9.1.0.8.jar" and "saxon-9.1.0.8-dom.jar" which have an older version but have all features enabled.
Then go to the "DITA-OT-3.x/lib" folder and it has a "Saxon-HE-9.8.0-7.jar" library there. Move it somewhere else and replace it with the two libraries from the older DITA OT 2.x lib folder.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply