BOS Document Designer Tutorials

The BOS Document Designer is a flexible designer that allows organisations to create and customise their own forms such as invoices and quotations. These forms can be output in JSON, HTML or PDF. The output is generated through a separate app that runs on AWS. The desktop app creates the JSON and sends it to the Document Creator, which parses it and returns a PDF or an HTML file. If the Document Creator app is unavailable, an Invalid JSON error is returned.

Document Designer can link to transactions or proposals.

Documents are designed by stacking bands on top of each other from the top down within a group. Bands can be dragged to reorder them, or to move them to a different group. Certain bands do not work with HTML because they rely on pages (e.g. Page Footer).

Two open-source fonts are supported with three styles each:

  • Roboto Light, Regular, and Bold
  • Roboto Serif, Light, Regular, and Bold

If the text includes Thai characters, the fonts are substituted with these fonts:

  • Roboto Serif > Noto Sans Thai Looped
  • Roboto > Noto Sans Thai

These tutorials explain how to use the document designer and should be read in conjunction with the Document Designer interface which explains the bands and fields in more detail.

Navigation: Main Menu > Setup > Form Designer > BOS Document Designer


Document Designer Fields

How to Design a Document

  • The design is flexible.
  • You can move bands around and edit them as often as you like.
  • For purposes of this tutorial, all three groups are used. However, you can insert all the fields into the body group and only use that group.
  • See the BOS Document Designer Interface article for examples of how groups can be used.
  1. Navigate to the Document Designer.
  2. Click New (button).
  3. Complete the header fields as follows:
    1. Description = Type a description for the document (e.g. Quotation).
    2. Code = Type a brief description for the document (e.g. QT).
    3. Page Size – Depth x Width (mm) = Type the size of the page in mm in the blocks below.
      • Note: Popular page sizes:
        • A3: 420 mm x 297 mm
        • A4: 297 mm x 210 mm 
        • A5: 210 mm x 148 mm
  4. Click Group (button) > Header.
  5. Accept the default to show the header on all the pages on the left (i.e. no changes are needed).
  6. Right click Header and click the following fields on the context menu:
  7. Accept the defaults for the lines and complete the other entries by following the links.
  8. Click Group (button) > Body.
  9. Accept the defaults next to Body on the left (i.e. Start New Page = unchecked, Keep Together = checked).
  10. Right click Body and click the following fields on the context menu:
  11. Accept the defaults for the lines and complete the other entries by following the links.
  12. Click Group (button) > Footer.
  13. Right click Footer and click the following fields on the context menu:
  14. Accept the defaults for the lines and complete the other entries as explained below.
  15. Click Save (button).
  16. Click Actions (button) > PDF to preview the document.
  17. Make any changes as needed.

How to Complete: Image and Text

1. Caption

  1. Visible = Uncheck the checkbox.
  2. Accept the defaults for the other fields.

2. Image

  1. Image URL = Paste the URL from your logo in the Value column (e.g. copy the link from the Attachments module).
  2. Placement = Select Left from the dropdown list.
  3. Width (mm) = 70
  4. Height (mm) = 70

3. Text

  1. Content = Click the pencil and type or paste all the company information.
    • Note: See the screenshot for an example. The information was taken from the Entity‘s Output tab and pasted in the block provided.
  2. Alignment = Select Right from the dropdown list.
  3. Font Name = Select Roboto – Regular from the dropdown list.
  4. Font Size = 8
  5. Line Height (em) = 1.4

4. Layout

  1. Column Gap = 50
    • Note: This gap is the space between the image and the text.

5. Margins

  1. Top (mm) = 10
    • Note: This margin represents blank space at the top of the page and is necessary to compensate for the printable area of printers (e.g. if your customer wants to print the document).
  2. Bottom (mm) = 0
  3. Left (mm) = 10
  4. Right (mm) = 10

6. Data Binding

  1. Leave the fields blank. For purposes of this example, the header does not change, therefore, this section is not completed.

How to Complete: Transaction Header

1. Text

  1. Label – Number = No.
  2. Label – Date = Date
  3. Label – Due Date = Look at the applicable Transaction or Transaction Type to see what this caption is used for. Type an appropriate caption. (In this example, it was left blank.)
  4. Label – VAT No. = VAT No.
  5. Label – Rep = Rep
  6. Font Name = Select Roboto Regular from the dropdown list.
  7. Font Size = 10
  8. Line Height (em) = 1.4

2. Margins

  1. Top (mm) = 10
  2. Bottom (mm) = 0
  3. Left (mm) = 10
  4. Right (mm) = 10

How to Complete: Caption

1. Caption

  1. Content =
    1. Click the pencil and type QUOTATION on the note editor.
    2. Alternatively use a data field (e.g. Quotation for [transaction_reference]) to display more information.
    3. Click Save (button) on the popup.
      • Note: You can type any variation of the name (e.g. Q U O T A T I O N, ~~ Quotation ~~).
      • Note: The available data fields are listed on the left. Double-click an entry to add it.
  2. Alignment = Select Center from the dropdown list.
  3. Font Name = Select Roboto – Bold from the dropdown list.
  4. Font Size = 14 (or any other value if you want the text larger or smaller (e.g. 12 or 16).

2. Margins

  1. Top (mm) = 0
    • Note: In this example, the margin is set by the preceding Transaction Header field.
  2. Bottom (mm) = 0
    • Note: In this example, the margin is set by the Transaction Items field that follows.
  3. Left (mm) = 10
  4. Right (mm) = 10

3. Data Binding

  1. Test – Item (ID): Leave blank.
  2. Test = Transaction (ID): If any data fields were selected under 1. Content, type the ID of any quotation in this field that has the applicable fields filled in. It does not matter which one you choose, because the ID is only used to generate a sample for testing purposes.

How to Complete: Transaction Items

01. Column – Item No.

  1. Label = No.
  2. Alignment = Select Left from the dropdown list.
  3. Visible = Check the checkbox.
  4. Width (mm) = 10

02. Column – Description

  1. Label = Description
  2. Alignment = Select Left from the dropdown list.
  3. Visible = Check the checkbox.
  4. Width (mm) = 63

03. Column – Quantity

  1. Label = Qty
  2. Alignment = Select Right from the dropdown list.
  3. Visible = Check the checkbox.
  4. Width (mm) = 12

04. Column – Unit

  1. Label = Unit
  2. Alignment = Select Left from the dropdown list.
  3. Visible = Check the checkbox.
  4. Width (mm) = 15

05. Column – Unit Price

  1. Label = Unit Price
  2. Alignment = Select Right from the dropdown list.
  3. Visible = Check the checkbox.
  4. Width (mm) = 20

06. Column – Total Exc

  1. Label = Total (excl. VAT)
  2. Alignment = Select Right from the dropdown list.
  3. Visible = Check the checkbox.
  4. Width (mm) = 25

07. Column – VAT

  1. Label = VAT
  2. Alignment = Select Right from the dropdown list.
  3. Visible = Check the checkbox.
  4. Width (mm) = 20

08. Column – Total Inc

  1. Label = Total (incl. VAT)
  2. Alignment = Select Right from the dropdown list.
  3. Visible = Check the checkbox.
  4. Width (mm) = 25

09. Text

  1. Font Name = Select Roboto – Regular from the dropdown list.
  2. Font Size = 8

10. Margins

  1. Top (mm) = 10
  2. Bottom (mm) = 0
  3. Left (mm) = 10
  4. Right (mm) = 10

How to Complete: Image

1. Caption

  1. Visible = Uncheck the checkbox (unless you want to display a caption).
  2. Accept the defaults for the other fields.

2. Image

  1. Image URL = Leave blank.
    • Note: Any URL entered here appears on every document. We want customised images so will enter that in Section 5: Data Binding.
  2. Placement = Select Center from the dropdown list.
  3. Width = 150
  4. Height = 150
    • Notes: This setting assumes the images are square.
    • Change the ratios for rectangular images (e.g. 150 x 100).
    • As far as possible, the BOS Document Designer retains image ratios regardless of the settings entered here.
    • If the layout is distorted, reduce the height number.

3. Margins

  1. Top (mm) = 0
  2. Bottom (mm) = 10
  3. Left (mm) = 0
  4. Right (mm) = 0

5. Data Binding

  1. Item (ID) = Enter the ID of any item. This ID is only used to preview the document and tweak the layout.
    1. To find an item’s ID, navigate to Items’ List View.
    2. Click View (button) if the list is not populated.
    3. Click the Field Chooser (*) and click the checkbox next to ID.
    4. Type part of the name of the item you want in the search block.
    5. Find the item and note the number that is displayed in the ID column.
  2. Attachment (Name) = Select the name that contains the image you want to display from the dropdown list.

How to Complete: Transaction Totals

1. Column – Left

  1. Text = Type any text you want to display to your customer. See the screenshot below for an example.
  2. Width (mm) = 60
    • Note: You can increase the width if there is no centre text.

2. Column – Center

  1. Text = Type any text you want to display to your customer or leave it blank for no text.

3. Column – Right

  1. Label – Subtotal = Subtotal
  2. Label – VAT = VAT
  3. Label – Total = Total
  4. Width (mm) = 45
  5. Label Width (mm) = 20

4. Text

  1. Font Name = Select Roboto – Regular from the dropdown list.
  2. Font Size = 8
  3. Line Height (em) = 1.4

5. Margins

  1. Top (mm) = 10
  2. Bottom (mm) = 10
  3. Left (mm) = 10
  4. Right (mm) = 10

1. Column – Left

  1. Left = Select Date Printed from the dropdown list to display the date and time that the document was created.
  2. Custom Text = Leave blank.

2. Column – Center

  1. Center = Select Custom Text from the dropdown list.
  2. Custom Text = Type any text you want to display, else leave the field blank.

3. Column – Right

  1. Right = Select Page Set from the dropdown list to display the number of pages.
  2. Custom Text = Leave blank.

4. Text

  1. Font Name = Select Roboto – Regular from the dropdown list.
  2. Font Size = 8

5. Margins

  1. Top (mm) = 5
  2. Bottom (mm) = 15
    • Note: This margin represents blank space at the bottom of the page and is necessary to compensate for the printable area of basic printers (e.g. if your customer wants to print the document).
  3. Left (mm) = 10
  4. Right (mm) = 10

Designed Document Example

Learn More

  1. BOS Document Designer Interface: Explains the interface from which custom documents (e.g. quotations and invoices) can be designed.
  2. Email Edit View: Explains the interface from which emails can be created.
  3. Email List View: Explains the interface that lists all the emails that have been created.
  4. Email Templates: Explains the interface from which email templates can be created. Lists all the available data fields.
  5. Form Designer – Reportbuilder Tutorials: These tutorials explain how to create or edit a template (form).
  6. Form Designer Interface: Explains the commonly used features for the Form Designer.
  7. Output Button: Explains the Output button that is available on most views.
  8. Output Template Tutorials: These tutorials explain how to add templates to transaction types and other modules.
  9. Output Templates Module: Explains the Output Templates interface.