Page 1 of 1
Specify style of draft comments in DITA to PDF output
Posted: Fri Jul 22, 2016 12:08 am
by rheath
I'd like to change the color of draft comments in PDF output from DITA source files. The default colors are red text on pink background. The combination make the text difficult to read, let alone stomach.
Would someone point me to the CSS file that controls the style of <draft-comment> tags in PDF output?
Re: Specify style of draft comments in DITA to PDF output
Posted: Fri Jul 22, 2016 8:34 am
by Radu
Hi,
The default PDF publishing is based on XSL-FO, so it is not CSS based.
If you look in the XSLT stylesheet:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT2.x/plugins/org.dita.pdf2/cfg/fo/attrs/commons-attr.xsl
it defines at some point an attribute set:
Code: Select all
<xsl:attribute-set name="draft-comment" use-attribute-sets="common.border">
<xsl:attribute name="background-color">#FF99FF</xsl:attribute>
<xsl:attribute name="color">#CC3333</xsl:attribute>
</xsl:attribute-set>
Usually a PDF XSLT customization is done not by directly modifying the XSLT stylesheet but by creating a PDF customization folder:
http://oxygenxml.com/doc/versions/18/ug ... ation.html
Regards,
Radu