com.oxygenxml.pdf.custom

ann.jensen
Posts: 199

com.oxygenxml.pdf.custom

Tue Dec 06, 2016 5:49 pm

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/18.1/ug-editor/topics/dita_pdf_output_note_images.html.

Any advice appreciated,
Regards,
Ann
radu_pisoi
Posts: 310
Location: Craiova

Re: com.oxygenxml.pdf.custom

Wed Dec 07, 2016 5:22 pm

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
Site Admin
Posts: 111

Re: com.oxygenxml.pdf.custom

Fri Apr 07, 2017 2:47 pm

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/19.0/ug-editor/topics/dita_pdf_output_note_images.html.

Kind regards,
Sorin Carbunaru
oXygen XML

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 2 guests