One Page Invoice Template for Document Generation

A monthly recurring invoice.

This example demonstrates how inner tables can expand to accommodate more line items, without affecting formatting.

The example also includes a dynamic hyperlink.

Expanding inner table

The inner table labelled "Account Summary" has a row inserted for every item in the Items array.

This is because it contains the <<rr_ repeating rows directive.

  1. Use repeating rows to loop through the Items data: <<rr_items>>...<<rr_>>.
  2. Within the loop, display the item and the amount on a new row: <<item>> and $<<amt>>.

The "Account Summary" table expands downwards, if there are more values in the data's Items array, while the other information remains in place.

 

For further information on repeating rows, see Tables

Adding a hyperlink

The "How to Pay" section at the bottom of the page contains syntax for inserting a hyperlink: <<link_toolboxURL>>.

In the template, a field that starts with <<link_ is a hyperlink field. This syntax instructs Docmosis to insert a hyperlink when rendering the document.

In the data file "http://www.metalegalfinance.com" is assigned to toolboxURL.

When the output file is rendered, "http://www.metalegalfinance.com" appears in the position of each of the <<link_toolboxURL>> hyperlink fields, as a clickable hyperlink. 

For further information on adding hyperlinks, see Hyperlinks.

Feedback

Invalid Input

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam. Please also consider contacting support@docmosis.com if you need help with this article.

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam.

Invalid Input

Document Gallery

Docmosis showcases its template-based document generation capabilities through a gallery of downloadable PDF documents. The gallery features a mixture of real documents provided by customers as well as links to PDFs generated from example templates, desgined to illustrate the versatility of Docmosis.