com.oxygenxml.pdf.custom

Post here questions and problems related to editing and publishing DITA content.
ann.jensen
Posts: 316
Joined: Wed Jun 17, 2015 10:19 am

com.oxygenxml.pdf.custom

Post 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
radu_pisoi
Posts: 404
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: com.oxygenxml.pdf.custom

Post 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">
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sorin_carbunaru
Posts: 419
Joined: Mon May 09, 2016 9:37 am

Re: com.oxygenxml.pdf.custom

Post 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
Post Reply