Print Pre-Population & Automation


The Anoto Live Forms PrintProcessor application provides a convenient way to manually print forms as and when required.  In addition to this, the PrintProcessor also provides a simple yet powerful way to automate print production, including the ability to pre-populate data onto a form from an external data source and print in bulk.


In order to experience the basic approach to print automation, follow these instructions:-

  1. Open the PrintProcessor, select any form and then either print or print-to-file
  2. Once printed, open the jobman/success folder in the PrintProcessor installation folder e.g. C:\Program Files (x86)\Anoto\Anoto Live Forms PrintProcessor\jobman\success
  3. Copy the latest .pjd file to your desktop and rename it to .xml e.g. my_print.xml
  4. Using File Explorer, open the forms inbox folder located in the PrintProcessor installation folder e.g. C:\Program Files (x86)\Anoto\Anoto Live Forms PrintProcessor\forms\456\inbox where 456 is the ID of the form you printed in step 1 as shown in the PrintProcessor window.
  5. Right-click and drag the xml file from step 3 into the inbox folder from step 4 and select Copy here.

Fig 1 - Locating the Form ID in the PrintProcessor

If done correctly, the file should be consumed and your form automatically printed or output to file.

Data Pre-population

If you check the "Enable pre-population" field in the design tool and then enable pre-population for a specific field(s), you can pre-populate data into the field at print time by adding the field reference and data before the </root> node at the bottom of the XML file generated in the previous section.

Fig 2 - Pre-population enabling a form using the ALF Digitisation Tool

To populate the First_name field with the name "Matt", simply reference the field name and value before the closing </root> node :-

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <settings xmlns="">
      <object ref="ps2pdfConverter" />
      <object ref="pdfSaver">
        <propertymapping name="DestinationFile" value="C:\Users\matts\Desktop\Anoto DiagNotes.pdf" />
      <object ref="psSaver">
        <property name="Enabled" value="false" />
      <object ref="formPrinter">
        <property name="Enabled" value="false" />
      <object ref="psGenPreProcessor">
        <propertymapping name="NumCopies" value="1" />
      <object ref="psGenerator">
        <propertymapping name="Duplex" value="False" />
        <propertymapping name="Tumble" value="False" />
        <propertymapping name="SafeColorMode" value="False" />
        <property name="Cropmarks" value="False" />
        <property name="Offset" value="False" />
        <property name="Rotate" value="False" />
        <property name="PaperPrintCodeSize" value="6" />

Fig 3 - Example print automation XML file with pre-populated field

To give the form a customised name when submitted and viewed in the Windows client, mobile phone clients or the Anoto Live Forms Viewer, include a <label> tag e.g.

	<label>Diagnotes form for Matt Storr</label>

The result of which will be as seen below in the Anoto Live Forms for Windows desktop client and the Anoto Live Forms Viewer (both forms shown are identical except one was printed using just the PrintProcessor, the other using a pre-populated XML file).

Fig 4 - Example of a custom label as seen in ALF for Windows

Fig 5 - Example of a custom label as seen in the ALF Viewer

To print multiple copies of a form each with its own unique pre-populated data, you can either generate a print automation xml file per form, or alternatively define each form inside its own <prepopdocument> tag e.g. :-

	<label>Matt Storr</label>
	<label>Carl Garner</label>

Using the example file above (which generates a PDF and saves it to the desktop), this would generate a single PDF file containing two forms each pre-populated with its own data.


Anoto Live Forms and its accompanying PrintProcessor software is a very powerful yet simple to use tool that can easily be made part of a digital form workflow.  All it requires is the data to be accessible and a small amount of development to automate the generation of a print automation XML file.  Placing the file in different form inbox folders controls which form you print.  Generating multiple forms using a single XML file is straightforward when using the </prepopdocument> tag.

Last Updated: 2016-11-18 19:05:34 UTC
Powered by Zendesk