A monthly recurring invoice.
Page Size: A4.
Inner tables can grow to accommodate six line items without affecting formatting.
Includes dynamic hyperlink insertion.
1) Tables can expand to match the data
The Account Summary table will expand to match the number of Items.
The rows <<rr_ (Repeat Rows) and <<er_ (End Repeat) will be removed from the final document.
Extra <<item>> and <<amt>> rows will be added based on the number of items in the data.
In your data you would have an array of "items":[...] to define the "item" and "amt" pairs. (JSON example).
2) Table formatting
Tables are a great way to layout a document. This example has tables within tables.
The inner table (Account Summary) will expand to include extra rows without affecting the layout and formatting of the righthand Totals box.
The placeholders in the righthand Totals box (eg: <<InvoiceNo>>) are right justified to ensure the decimal of the $0.00 amounts line up.
3) Hyperlink insertion
The bottom table includes placeholders like this: <<link_toolboxURL>>
Starting a placeholder with <<link_ instructs Docmosis to format the data as a clickable link in the final document.
The data would have: "toolboxURL":"http://www.metalegalfinance.com" (JSON example)
In the the final document "http://www.metalegalfinance.com" will be a clickable link.
It is possible to define DISPLAY TEXT that is different from the LINK URL by using the pipe "|" symbol in the data.
For example "toolboxURL":"META Toolbox|http://www.metalegalfinance.com" would result in: META Toolbox linking to the URL http://www.metalegalfinance.com.