Latest revision as of 11:43, 7 September 2015

To create a pdf document create a new custom data formatter in your task.
Be sure to select 'PDF Document' as the 'Type of document to produce'.

This will then create the template for your pdf instructions.

As usual if you enter < then the helper will appear with a list of options and permitteed tags for the pdf.

Note it is actually the saving option that tells presence to send these instructions
through the pdf formatter to generate the file.

To create a pdf file you need to set the 'Write Output' option to 'Into PDF File'

If you were to select 'To File' then the instructions themselves will be saved as pure text.
This is useful if you need to send the instructions to us for debugging purposes, as we can
then put the file into a task and run it through the pdf formatter to see what is happening.

A pdf file can be created using a well structured html.
Each tag should be terminated with an associated closing tag.

At present only basic formatting is supported, so no style sheets or inline formatting is allowed.

Formatting

Absolute positioning

Sometimes you need to be specific when positioning text (for instance if the document is going to be scanned by an ocr reader, or if you wish to position an address so that it appears in the right position in a windowed evelope, or if you want to place text in the border).

It's worth noting that an A4 page is 595 units across by 842 units down.

Also depending on the table width the table will be pushed left so that it is not hanging off the right hand side of the page.
For instance, if the table width was 50% then the positionabs="500,200" would actually be positioned at 298,200.