Page 1 of 1
PDF Transform failing on topics with youtube links
Posted: Mon Apr 19, 2021 9:45 pm
by candymmorton
I am seeing the following error when running PDF transform on topics with the youtube links embedded:
Transformation failed. C:\git\aa-dita-tools\dita-ot\dita-ot-3.1.2\plugins\org.dita.base\build_preprocess2.xml:175: java.nio.file.InvalidPathException: Illegal char <:> at index 5: https:\www.youtube.com\embed\ZE5hxVQw-tY
Here is the syntax of the link in the dita file:
<p>Watch the following video on how to get started with Private Bot Store <object
data="
https://www.youtube.com/embed/ZE5hxVQw-tY" outputclass="iframe">
<param name="allowfullscreen"/>
</object></p>
Re: PDF Transform failing on topics with youtube links
Posted: Mon Apr 19, 2021 11:43 pm
by candymmorton
I forgot to add we are using dita-ot-3.1.2
Re: PDF Transform failing on topics with youtube links
Posted: Tue Apr 20, 2021 9:06 am
by Radu
Hi Candy,
The DITA Open Toolkit bundled with an Oxygen installation has a special plugin installed which adds support for referencing videos in DITA content. The plugin can be found here:
https://github.com/oxygenxml/dita-media-support
Have you installed the plugin I mention above in your custom DITA OT? It may help with this use case.
For HTML documents it will add an embedded iframe in the HTML output and for PDF it will leave the video as a link as the plugin does not support embedding videos in PDFs.
In addition there is also this DITA OT bug fixed in version 3.3.2 which looks quite similar to what you are experiencing:
https://github.com/dita-ot/dita-ot/issues/2861
Regards,
Radu
Re: PDF Transform failing on topics with youtube links
Posted: Tue Apr 20, 2021 8:34 pm
by candymmorton
Thank you Radu,
When I try to install the plugin I get the following Failure message:
C:\git\aa-dita-tools\dita-ot\dita-ot-3.1.2\integrator.xml:43: Integration failed: Plug-in com.oxygenxml.media uses an undefined extension point com.oxygenxml.pdf.css.xsl.merged2html5.parameters
Re: PDF Transform failing on topics with youtube links
Posted: Wed Apr 21, 2021 8:07 am
by Radu
Hi,
You can manually edit the "com.oxygenxml.media/plugin.xml" file and remove from it these 2 lines:
Code: Select all
<feature extension="com.oxygenxml.pdf.css.xsl.merged2html5" value="xhtmlMedia.xsl" type="file"/>
<feature extension="com.oxygenxml.pdf.css.xsl.merged2html5.parameters" value="insertParameters.xml" type="file"/>
Regards,
Radu
Re: PDF Transform failing on topics with youtube links
Posted: Wed Apr 21, 2021 11:14 pm
by candymmorton
Thank you Radu, that worked the install of plugin was successful but I still got my initial error of:
Transformation failed. C:\git\aa-dita-tools\dita-ot\dita-ot-3.1.2\plugins\org.dita.base\build_preprocess2.xml:175: java.nio.file.InvalidPathException: Illegal char <:> at index 5: https:\www.youtube.com\embed\ZE5hxVQw-tY
Re: PDF Transform failing on topics with youtube links
Posted: Thu Apr 22, 2021 7:26 am
by Radu
Hi,
As I said above there is also this DITA OT bug fixed in version 3.3.2 which looks quite similar to what you are experiencing:
https://github.com/dita-ot/dita-ot/issues/2861
so maybe you should try updating the used DITA OT publishing engine.
Regards,
Radu