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

Select multiple PDF files with the mouse and write them into a single PDF file “alles.pdf”.

<?xml version="1.0" encoding="utf-8"?>
<job>
  <dialog>
    <topic>
      <prompt>PDF-Inputfiles</prompt>
      <type>files</type>
      <filter>'.pdf'</filter>
      <variable>inFiles</variable>
    </topic>
  </dialog>

  <instance>
    <eval variable="outFile" expression="filepath({inFile}+'alles.pdf'" />
    <loop list="{inFiles}" variable="inFile">
      <append>
        <template file="{inFile}" />
        <output file="{outFile}" />        
      </append>         
    </loop>
  </instance>
</job>
 


Open selection window

Description field in the selection window
Multiple files can be selected
Only allow PDF files
Remember selected file names




Output file "everything.pdf" is "next to" the selected PDF files
Looping through each selected file
Append to the specified output file
Attach the complete input file
Specify output file

End of program loop