Page 1 of 1
Highligth generated in PDF
Posted: Thu Jul 30, 2015 3:46 pm
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.
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
Re: Highligth generated in PDF
Posted: Thu Jul 30, 2015 5:04 pm
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
Re: Highligth generated in PDF
Posted: Fri Jul 31, 2015 3:35 pm
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
Re: Highligth generated in PDF
Posted: Mon Aug 03, 2015 5:10 pm
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
Re: Highligth generated in PDF
Posted: Tue Aug 11, 2015 11:30 pm
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
Re: Highligth generated in PDF
Posted: Wed Aug 12, 2015 11:24 am
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
Re: Highligth generated in PDF
Posted: Fri Dec 18, 2015 1:08 pm
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
Re: Highligth generated in PDF
Posted: Thu Feb 18, 2016 1:00 am
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
. 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
Re: Highligth generated in PDF
Posted: Thu Feb 18, 2016 9:51 am
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
Re: Highligth generated in PDF
Posted: Fri Feb 19, 2016 2:17 am
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