Archive | Tips & Tricks

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 […]

Continue Reading

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 […]

Continue Reading

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 […]

Continue Reading

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 […]

Continue Reading

Ant Build File for Antenna House Formatter

Running Antenna House Formatter from Ant is simple using the example build file provided as part of PDF5-ML plugin for DITA. The file can be found on github: https://github.com/AntennaHouse/pdf5-ml/blob/master/com.antennahouse.pdf5.ml/build_ahf.xml . It is a comprehensive Ant build file that you can either copy and modify or import into the main build file for your own project.

Continue Reading

Tutorial: Drag and Drop Formatting

Download: Sample Files Drag-and-drop Formatting When using the AH Formatter GUI, you can drag a file or a combination of files onto the WYSIWYG window and have them formatted automatically. This tutorial uses AH Formatter GUI plus Windows Explorer as shown in the following figure: Single files The simplest and most straightforward way to do […]

Continue Reading