Page 1 of 1

com.oxygenxml.pdf.custom

Posted: Tue Dec 06, 2016 5:49 pm
by ann.jensen
Hi,
I am trying to change the note icon used for pdf generation from oxygen Author using the default org.dita.pdf2 plugin.
I see that it is using

Code: Select all

\Oxygen XML Author 18.1\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.pdf.custom\custom.xsl
and

Code: Select all

\Oxygen XML Author 18.1\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.pdf.custom\build_custom.xml
What role does this plugin (com.oxygenxml.pdf.custom) play in the context of the org.dita.pdf2 plugin?

I have created my own custom plugin that I want to use to set the note icons but am confused by the use of com.oxygenxml.pdf.custom versus directions described in other post http://www.oxygenxml.com/doc/versions/1 ... mages.html.

Any advice appreciated,
Regards,
Ann

Re: com.oxygenxml.pdf.custom

Posted: Wed Dec 07, 2016 5:22 pm
by radu_pisoi
Hi,
ann.jensen wrote:I am trying to change the note icon used for pdf generation from oxygen Author using the default org.dita.pdf2 plugin.
I see that it is using

Code: Select all
\Oxygen XML Author 18.1\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.pdf.custom\custom.xsl
and

Code: Select all
\Oxygen XML Author 18.1\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.pdf.custom\build_custom.xml

What role does this plugin (com.oxygenxml.pdf.custom) play in the context of the org.dita.pdf2 plugin?
The com.oxygenxml.pdf.custom plugin is used to specify custom images for DITA notes. The com.oxygenxml.pdf.custom/build_custom.xml build file is used to copy the custom images in the artwork folder and the com.oxygenxml.pdf.custom/custom.xsl stylesheet overrides the DITA-OT template that process note elements to use our custom images.

Code: Select all

<xsl:template match="*[contains(@class,' topic/note ')][$com.oxygenxml.use.custom.note.images eq 'yes']" mode="setNoteImagePath">
Unfortunately, the com.oxygenxml.pdf.custom plugin is not compatible with the procedure described in the https://www.oxygenxml.com/doc/versions/ ... mages.html topic. I will register an issue on our side to add a parameter that you can use to disable the com.oxygenxml.pdf.custom plugin, allowing you to customize images in your plugin.

As workaround, if you want to customize images from your plugin, please comment from the com.oxygenxml.pdf.custom/custom.xsl stylesheet the following template:

Code: Select all

<xsl:template match="*[contains(@class,' topic/note ')]" mode="setNoteImagePath">

Re: com.oxygenxml.pdf.custom

Posted: Fri Apr 07, 2017 2:47 pm
by sorin_carbunaru
Hi Ann,

I wanted to let you that in the newly released oXygen 19.0 you can set com.oxygenxml.use.custom.note.images=no and then use the procedure from https://www.oxygenxml.com/doc/versions/ ... mages.html.

Kind regards,
Sorin Carbunaru
oXygen XML