pdf2-creating-change-bars.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html
  2. SYSTEM "about:legacy-compat">
  3. <html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2018"><meta name="DC.rights.owner" content="(C) Copyright 2018"><meta name="DC.Type" content="concept"><meta name="description" content="If you use Antenna House Formatter or RenderX XEP, you can generate revision bars in your PDF output by using the changebar attribute of the DITAVAL revprop element."><meta name="DC.Relation" scheme="URI" content="../topics/pdf-customization.html"><meta name="DC.Format" content="HTML5"><meta name="DC.Identifier" content="concept_gsc_vcf_vs"><link rel="stylesheet" type="text/css" href="../css/commonltr.css"><link rel="stylesheet" type="text/css" href="../css/dita-ot-doc.css"><title>Generating revision bars</title></head><body id="concept_gsc_vcf_vs"><header role="banner"><div class="header">
  4. <p>DITA Open Toolkit</p>
  5. <hr>
  6. </div></header><nav role="toc"><ul><li><a href="../index.html">DITA Open Toolkit 3.0</a></li><li><a href="../release-notes/index.html">Release Notes</a></li><li><a href="../topics/installing-client.html">Installing DITA-OT</a></li><li><a href="../topics/alternative-input-formats.html">Authoring formats</a></li><li><a href="../topics/building-output.html">Building output</a></li><li><a href="../parameters/index.html">Setting parameters</a></li><li><a href="../topics/extending-the-ot.html">Customizing DITA-OT</a><ul><li><a href="../topics/html-customization.html">Customizing HTML</a></li><li><a href="../topics/pdf-customization.html">Customizing PDF</a><ul><li><a href="../topics/pdf-customization-approaches.html">PDF customization approaches</a></li><li><a href="../topics/pdf-customization-plugin-types.html">Types of custom PDF plug-ins</a></li><li><a href="../topics/pdf-plugin-structure.html">PDF plug-in structure</a></li><li><a href="../topics/pdf-customization-example.html">Simple PDF plug-in example</a></li><li><a href="../topics/pdf-customization-resources.html">Custom PDF plug-in resources</a></li><li class="active"><a href="../topics/pdf2-creating-change-bars.html">Generating revision bars</a></li></ul></li><li><a href="../topics/globalization.html">Globalizing DITA content</a></li><li><a href="../topics/custom-plugins.html">Custom plug-ins</a></li><li><a href="../extension-points/plugin-extension-points.html">Extension points</a></li><li><a href="../topics/migration.html">Migrating customizations</a></li><li><a href="../topics/rebuilding-the-dita-ot-documentation.html">Rebuilding documentation</a></li></ul></li><li><a href="../topics/troubleshooting-overview.html">Troubleshooting</a></li><li><a href="../reference/index.html">Reference</a></li><li><a href="../topics/dita-and-dita-ot-resources.html">Resources</a></li></ul></nav><main role="main"><article role="article" aria-labelledby="ariaid-title1">
  7. <h1 class="title topictitle1" id="ariaid-title1">Generating revision bars</h1>
  8. <div class="body conbody"><p class="shortdesc">If you use Antenna House Formatter or RenderX XEP, you can generate revision bars in your PDF output by
  9. using the <code class="keyword markupname xmlatt">@changebar</code> attribute of the DITAVAL <code class="keyword markupname xmlelement">&lt;revprop&gt;</code> element. </p>
  10. <div class="note note note_note"><span class="note__title">Note:</span> FOP 1.1 does not support the XSL <code class="ph codeph">fo:change-bar</code> formatting object.</div>
  11. <div class="p">The DITA specification for <code class="keyword markupname xmlatt">@changebar</code> simply says:<blockquote class="lq">
  12. <dl class="dl">
  13. <dt class="dt dlterm"><code class="keyword markupname xmlatt">@changebar</code></dt>
  14. <dd class="dd">When flag has been set, specify a changebar color, style, or character, according to the changebar
  15. support of the target output format. If flag has not been set, this attribute is ignored.</dd>
  16. </dl>
  17. </blockquote></div>
  18. <p class="p">The syntax for <code class="keyword markupname xmlatt">@changebar</code> is a sequence of name and value pairs that are delimited by semicolons,
  19. for example:</p>
  20. <pre class="pre codeblock"><code>&lt;revprop action="flag" val="rev01"
  21. <strong class="ph b">changebar="color:black;style:solid;width:0.5pt"</strong>
  22. /&gt;</code></pre>
  23. <p class="p">To produce a revision bar, you must specify a value for <span class="keyword parmname">style</span> and should specify a value for
  24. <span class="keyword parmname">width</span> so you get a visible rule.</p>
  25. <p class="p">Each name and value pair corresponds to an attribute of the <a class="xref" href="http://www.w3.org/TR/xsl/#fo_change-bar-begin" target="_blank">XSL-FO fo:change-bar-begin element</a>. The
  26. following attributes and values are available:</p>
  27. <dl class="dl parml">
  28. <dt class="dt pt dlterm">style</dt>
  29. <dd class="dd pd">The style to use for the line, as for other XSL-FO rules (<a class="xref" href="http://www.w3.org/TR/xsl/#change-bar-style" target="_blank">@change-bar-style</a>). The
  30. value <span class="keyword option">solid</span> produces a solid rule; the default value is <span class="keyword option">none</span>.</dd>
  31. <dt class="dt pt dlterm">color</dt>
  32. <dd class="dd pd">Any color value recognized by XSL-FO, including the usual color names or a hex color value. The default
  33. value is <span class="keyword option">black</span>.</dd>
  34. <dt class="dt pt dlterm">offset</dt>
  35. <dd class="dd pd">The space to offset the revision bar from the edge of the text column. You can use points (pt) or
  36. millimeters (mm).</dd>
  37. <dt class="dt pt dlterm">placement</dt>
  38. <dd class="dd pd">The side of the text column on which to place the revision bar. The allowed values are
  39. <span class="keyword option">start</span> (left side for left-to-right languages) and <span class="keyword option">end</span> (right side for
  40. left-to-right languages). The default value is <span class="keyword option">start</span>.</dd>
  41. <dt class="dt pt dlterm">width</dt>
  42. <dd class="dd pd">The width of the rule as a measurement value. Typical values are <span class="keyword option">1pt</span> and
  43. <span class="keyword option">0.5pt</span>, which renders a hairline rule.</dd>
  44. </dl>
  45. <p class="p">XSL-FO 1.1 does not provide for revision bars that are not rules, so there is no way to get text revision
  46. indicators instead of rules, for example, using a number in place of a rule. Antenna House Formatter provides a
  47. proprietary extension to enable this, but the DITA-OT PDF transformation does not take advantage of it.</p>
  48. </div>
  49. <nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/pdf-customization.html" title="You can create custom DITA-OT plug-ins that build on the default DITA to PDF transformation. Plug-ins can customize covers and page layouts, modify formatting, override logic of the default PDF plug-in, and much more.">Customizing PDF output</a></div></div></nav></article></main></body></html>