Archive | Tips & Tricks

Changing Ruler Units in AH Formatter GUI

When the rulers are visible in the WYSIWYG window (after either selecting ‘Show Ruler’ in the ‘View’ menu or pressing Ctrl+L), right-click on either ruler then select the units to use: Changing the ruler units also changes the units of the page size indication that is shown in the status bar at the bottom of […]

Formatter Forced Page Count

Formatter has quite a few extensions to allow a forced page count. The xsl-fo standard only allows ‘auto | even | odd | end-on-even | end-on-odd | no-force | inherit’ as values for the ‘force-page-count’ property but Formatter allows integer values, multiple + offset values, and an option to base the count on physical document […]

Bypassing Span= ‘All’ Auto Column Balancing

With Formatter, the content before a block that uses span=”all” is distributed between the columns evenly. If you want to avoid that behavior you can end the previous content with a forced column break. Sample/Example

Embed a file into PDF

Linked is an example of embedding a file into a PDF. You would use the Antenna House annotation extension. The properties for this extension are detailed in the Formatter manual under the section XSL/CSS Extensions.

CSS: Using page counter in styled footnotes

In order to place some fixed multi-line text together with the current page counter in the footer you’ll need to use a separate div to reference the page number counter from inside the running footer element. Ex: @bottom-left { /*content: element(footer)  ” ” counter(page);*/ content: element(footer); } … div.pageNum { content: counter(page); } … <div […]

How to Retain Links in Embedded PDF

To maintain the link functionality in the embedded pdfs you should specify the import annotations option in a Formatter configuration file.  Try rendering the document with the following configuration. —- config.xml —- <formatter-config> <pdf-settings  import-annotation-types=”All” /> </formatter-config> —- Ex: command line:  ahfcmd -d sample.fo -o output.pdf -i config.xml -x 4 gui:  ‘Format -> Import Option […]

How to Change MathML Subscript/Superscript Size Limit

The default minimum size of MathML is due to MathML’s ‘scriptminsize’ limit. This prevents super and subscripts becoming smaller than 8pt.  The limit can be removed by wrapping the MathML code in an <mstyle> element with scriptminsize set to 0 or it can be changed in a Formatter configuration file.  Ex: <mml:mstyle scriptminsize=”0pt”> <mml:sub> … Formatter […]