Highligth generated in PDF

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Boreas
Posts: 86
Joined: Wed Feb 09, 2011 10:43 pm

Highligth generated in PDF

Post by Boreas »

Hello,

Base en the fact that the higlight feature wraps the highlighted text in a element

Code: Select all

<?oxy_custom_start type="oxy_content_highlight" color="255,255,0"?> highlighted text.<?oxy_custom_end?>
I was hoping to be able to declare it in my plugin to generate it in the PDF.

In customs.xsl I added

Code: Select all

    <xsl:template match="*[contains(@class,' topic/?oxy_content_start')]">
<fo:inline xsl:use-attribute-sets="oxy_content_highlight">
<xsl:call-template name="commonattributes"/>
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
In the customs-attr.xml

Code: Select all

    <xsl:attribute-set name="oxy_content_highlight">
<xsl:attribute name="background-color ">yellow</xsl:attribute>
</xsl:attribute-set>
It did not work. :cry:
I am pretty sure the problem is here: <xsl:template match="*[contains(@class,' topic/?oxy_content_start')]"> but I can't figure out how to fix it. Or perhaps it just doesn't work that way?

Regards
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Highligth generated in PDF

Post by mihaela »

Hi,

In this post I see that you are using the "DITA Map PDF - WYSIWYG - Experimental" transformation scenario:
http://www.oxygenxml.com/forum/viewtopi ... =2&t=11818
Please see my answer from that post and tell us if the posts are related (are you referring here to the same scenario and use-case)?

Best Regards,

Mihaela
--
Mihaela Calotescu
<oXygen/> XML Editor
Mihaela Calotescu
http://www.oxygenxml.com
Boreas
Posts: 86
Joined: Wed Feb 09, 2011 10:43 pm

Re: Highligth generated in PDF

Post by Boreas »

Hello,

Yes they are related because I am trying to find a way to display the Highlights in the PDF. Since it is not included in the Wysiwyg PDF transformation scenario, I was trying to create a patch directly in my plugin.
so the question remains.

Regards
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Highligth generated in PDF

Post by Radu »

Dear Carole,

The PDF customization plugin which you have can only customize the usual DITA to PDF output.
So It is not used at all for the PDF obtained via the "DITA Map PDF - WYSIWYG - Experimental" transformation scenario.
This scenario uses a new DITA Open Toolkit plugin located in :

OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\com.oxygenxml.pdf.prince

for which separate XSLT changes would probably need to be made in the XSLT stylesheet post-process.xsl which matches various Oxygen-related processing instructions and creates in the PDF various ranges from them.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Boreas
Posts: 86
Joined: Wed Feb 09, 2011 10:43 pm

Re: Highligth generated in PDF

Post by Boreas »

Hello,

yes I understand that they are two different things. I was just trying to hack the system, to make my plugin genrerate a pdf with highlights.
So basically, what you are saying is that I cannot format the Hightlight element in my plugin. So that each time I use the highligth element, the plugin will generate it with a background color.

that's sad. :(

Carole
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Highligth generated in PDF

Post by Radu »

Hi Carole,

If you are using Oxygen 17.0 you could contact us directly (support@oxygenxml.com) and I will try to give you some changes for the DITA Map PDF - WYSIWYG plugin (the one which uses either Prince XML or Antenna House) in order to also present colored highlights in the PDF.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Highligth generated in PDF

Post by Radu »

Hi,

Just to update this thread, the DITA Map PDF - WYSIWYG transformation scenario bundled with Oxygen 17.1 should out of the box present colored highlights in the PDF output.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
abasanskaya1
Posts: 4
Joined: Fri Aug 28, 2015 10:41 pm

Re: Highligth generated in PDF

Post by abasanskaya1 »

Hi Radu, I have Oxygen 17.1 and tried to use DITA Map PDF - WSIWYG - Experimental transformation, but it did not preserve the highlights I made in Oxygen in the editor. The highlights are marked with

Code: Select all

<?oxy_custom_start type="oxy_content_highlight" color="255,255,0"?>
and

Code: Select all

<?oxy_custom_end?>
. I also set my css.processor.path.prince variable to the path of my prince.exe file. Is there anything else I need to do to use the out-of-the-box scenario you mentioned?
Thanks,
AB
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Highligth generated in PDF

Post by Radu »

Hi,

I tested and this works for my small sample project.
Have you also set the show.changes.and.comments parameter to yes?
If you did and it still does not work, maybe it depends on where the highlights are placed. Could you create a small DITA Map project and send it via email? (support@oxygenxml.com).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
abasanskaya1
Posts: 4
Joined: Fri Aug 28, 2015 10:41 pm

Re: Highligth generated in PDF

Post by abasanskaya1 »

Hi Radu,
I greatly appreciate your quick response. I missed the part about setting show.changes.and.comments to yes before.
Thanks again,
AB
Post Reply