Tips & Tricks

Below are tips & tricks related to Antenna House Formatter. With these tips, users can increase their productivity and make their overall experience a lot more enjoyable.

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

Posted in Tips & Tricks | Comments Off on Bypassing Span= ‘All' Auto Column Balancing

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.

Posted in Tips & Tricks | Comments Off on Embed a file into PDF

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

Posted in Tips & Tricks | Comments Off on CSS: Using page counter in styled footnotes

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

Posted in Tips & Tricks | Comments Off on How to Retain Links in Embedded PDF

Extending CSS with XSL-FO

Presented by Tony Graham

Posted in Tips & Tricks | Comments Off on Extending CSS with XSL-FO

Validating XSL-FO w/ focheck XSL FO Framework

Presentation by Tony Graham

Posted in Tips & Tricks | Comments Off on Validating XSL-FO w/ focheck XSL FO Framework

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

Posted in Tips & Tricks | Comments Off on How to Change MathML Subscript/Superscript Size Limit

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.

Posted in Tips & Tricks | Comments Off on Ant Build File for Antenna House Formatter

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

Posted in Tips & Tricks | Comments Off on Tutorial: Drag and Drop Formatting

PDF Techniques for Web Content Accessibility Guidelines 2.0

AH Formatter implements a combination of FOs and properties from XSL 1.1 plus Antenna House extensions that allow you to use the accessibility features of PDF in the output from AH Formatter. “PDF Techniques for WCAG 2.0” is a W3C Working Group Note (http://www.w3.org/WAI/GL/WCAG20-TECHS/pdf) that describes PDF-specific techniques for meeting “Web Content Accessibility Guidelines 2.0” […]

Posted in Tips & Tricks | Comments Off on PDF Techniques for Web Content Accessibility Guidelines 2.0