· data2print ·

The solution for preparing, composing and personalizing
complex printed matter

Startpage · Introduction · Input/Processing/Output · Examples

Rearrange existing PDF documents
PDF document in individual pages
Split PDF document into front pages/back pages
Extract specific PDF pages
Extract specific PDF front/back pages

Composition of multiple PDF documents
Combine PDF documents
Scale PDF document
Duplicate PDF document on print sheet

Change existing PDF documents
Create multi-page mail merge
Resort PDF documents


Example – Create a multi-page form letter

A mail merge from addresses in a CSV file is extremely easy to create. The first page of an existing document is expanded to include address data, the remaining pages are added without changes. The generated PDF file contains all personalized documents.

data2print does not simply copy the source document - the unpersonalized document is only copied once into the personalized target file and is only referenced at the following addresses. This keeps the target file small and print RIP time minimal.

<?xml version="1.0" encoding="utf-8"?>

  <eval variable="outFile" expression="filepath({inFile}+'adressen.pdf'" />
    <iterate file="{csvFile}" variable="adr">
      <iterate file="{inFile}" variable="pdfin">
          <template file="{inFile}"  pagenr="{pdfin.pagenr}"/>
          <compose condition="{pdfin.pagenr}=1" file="addressfield.compose.xml"/>
          <output file="{outFile}"/>

Open selection window

Description field in the selection window

Allow a PDF file
Remember selected file name

Allow a CSV address file
Remember selected file name

Add “_adressen.pdf” to the output file

Going through the address lines
Cycle through the pages of the document
Append to the specified output file
Attach current page only
Only insert the address in position on page 1
Write to the personalized destination file

End of document page loop
End of address loop

The address field is described separately in the file "addressfield.compose.xml", but can also be located in a form field within the PDF document to be personalized.

<?xml version="1.0" encoding="utf-8"?>

  <field type="document" top="6cm" left="3cm"
                         height="3.5cm" weight="6cm">
    <text fontface="arial" 
      <p>{adr.Anrede} {adr.Titel} {adr.Vorn} {adr.Nachn}</p>
      <p>{adr.Straße} {adr.Hausnummer}</p>
      <p>{adr.PLZ} {adr.Ort}</p>


Location of the address

Double spaces are deleted
Empty lines are deleted
The data fields {adr.xxxxx} receive the name from the CSV file