Document type apps / Print form

Print form

Files stored in app items can be printed or saved to your computer with a watermark. You can use a ready-made watermark template or upload your own.

You can also watermark files in a business process using the Insert Watermark activity. This will save the file to a variable that can be used during the process, for example, to send it to the manager for approval or automatically send it to the client’s email.

начало внимание

Only the users included in the Administrators group can enable the print option and customize the watermark template..

конец внимание

Enable print form

  1. Click on the gear icon next to the app name to open the app menu.
  2. Select Print Form.
  3. On the opened page select the Add watermark check box. The pre-configured template is set up by default. It displays the ELMA logo, name, creation date and author of the document. The watermark will be placed in the lower right corner of each document page. These settings cannot be changed.
    print_form01
  4. Additionally, you can enable the following options:
  • Display a watermark in preview mode. On the preview form of the Document type app, the added file is displayed with a watermark.
  • Download document with watermark when clicking the Print button option. When you click the Print button on the viewer form, the file is saved to your local computer with a watermark in .pdf format.

print_form02

Add a new watermark template

You can upload a different watermark template for each app. The settings allow you to change the position of the watermark, opacity, select the pages on which it should be displayed, etc.

  1. Click on the gear icon next to the app name to open the settings.
  2. Select Print Form.
  3. Click +  Add button in the upper right corner of the page. Select a type of the template:
  • Default template. A template with HTML code for the watermark is created with default settings. It contains the name of the document, date and author;
  • Template with digital signature. A template with HTML code is added, the code containing data about signing the file. The watermark will contain the organization, signee, name or number of the e-signature certificate and its validity period, as well as the date the document was signed.    
     
  1. Enable the With information about digital signature option to display file signing information in the template. This will allow you to add data about the e-signature to the HTML template and display them in the watermark. If you have selected a template containing information about the signature, this option is enabled by default.

print_form08

  1. Specify the name and HTML code of your template. Use tags just like in a regular HTML document. Below you can see an example of an HTML watermark template:

<table style="margin: 16px 64px 16px 32px; border-color: #233255; max-width: 1000px; height: 130px; border: 2px solid #233255;" cellpadding="6px">
   <tbody>
         <tr style="height: 58px;">
      <td rowspan="2" style="width: 128px; vertical-align: middle; height: 98px;">
      <td style=" min-width: 350px; max-width: 700px; text-align: left; vertical-align: top; height: 58px;">
   <p><span style=" color: #233255; font-size: 22px;">Document: {$__name}</span></p>
   <p><span style="color: #233255; font-size: 22px;">{if {$__register_name} <>""}Registration number:{$__register_name}{end}</span></p>
      </td>
      <td rowspan="2" style="max-width: 130px; vertical-align: middle; height: 98px;"/>
        </tr>
      <tr style="height: 40px;">
      <td style="text-align: left; vertical-align: top; height: 40px;">
      <span style="color: #233255; font-size: 22px;">Created on: {DateTime("DD.MM.YYYY",{$__createdAt})} Author: {$__createdBy.__name}</span>
      </td>
        </tr>
   </tbody>
</table>

Please note, that not all tags, attributes, and CSS properties available for the HTML markup language can be used in the watermark template

List of allowed tags, attributes, and CSS properties

You can use context variables in a template. They can be used in the following format: {$variable_name}. The variable name is unique and is written in English, e.g. {$contractor}. In the example above, the document name, registration number, author, and date of creation are used in the template.
To show data of an electronic signature in an HTML template, the following syntax is used: {$signInfo.data.parameter_name}. For example, you can add the name of the signature provider with the value {$signInfo.data.provider_name}.

  1. In additional settings you can choose the documents pages for displaying the watermark, set its position, scaling, and opacity.
  2. You can add as many templates as you want. . You can display several watermarks on the same document. To apply a specific template to the documents in the app, select Watermark is turned on checkbox in its settings.
  3. To delete the watermark template, click on the recycle bin icon in its settings.
  4. When the setting is complete, click the Save button in the upper right corner of the page.

Print a watermarked document from an app item page

After enabling the watermark printing option, a Print button will appear above the uploaded file on the view page of the Document type app item. Clicking on it will allow you to print the watermarked file. If the administrator has enabled the download option in the app settings, downloading the file to a computer in .pdf format will be available in print form.

print_form04

Print files from a standard app

If a Files property has been added to the context of a standard app, you can print this file directly form an app item’s page. To do this, the administrator has to:

  1. Enable the print form option and select the template as described above.
  2. In the Advanced mode of the app form settings, place the Buttons: Download and Edit widget on the app view page. To allow users to view the contents of the file added to the field, display the Upload and preview file widget. It contains the necessary buttons.
  3. Now, when you add a file to the item view form, the Print button will appear. Users will be able to print the watermarked file or download it to a computer.

Found a typo? Highlight the text, press ctrl + enter and notify us