· 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 – Rearrange PDF documents

An existing PDF document contains invoices. The invoice & customer number etc. can be extracted and used as a basis for sorting or subsequent application of shipping characteristics.

<pdfparser file="{EingabeDatei}" variable="dokument">
  <region>
    <name>top</name>
    <pagenumber>1</pagenumber>
    <x>0pt</x>
    <y>0pt</y>
    <width>420pt</width>
    <height>100pt</height>
    <find>
      <varname>InvoiceNumber</varname>
      <regex>'.*Invoicenumber (.*)'</regex>
    </find>
  </region>
  <region>
    <name>adresse</name>
    <pagenumber>1</pagenumber>
    <x>50pt</x>
    <y>100pt</y>
    <width>250pt</width>
    <height>150pt</height>
    <find>
      <varname>plz</varname>
      <regex>'([0-9][0-9][0-9][0-9][0-9])'</regex>
    </find>
  </region>
</pdfparser>

<log text="InvoiceNumber {dokument.InvoiceNumber}" />
<log text="BelegTyp {dokument.BelegTyp}" />
<log text="LeistungsBeginn {dokument.LeistungsBeginn}" />
<log text="InvoiceDate {dokument.InvoiceDate}" />
<log text="ReservierungsNummer {dokument.ReservierungsNummer}" />
<log text="KundeLandKennz {dokument.KundeLandKennz}" />