· 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 – PDF document in individual pages

Select a PDF file with the mouse and split it into individual pages. The PDF file "test.pdf" becomes "test_1.pdf" "test_2.pdf" "test_3.pdf" etc.

<job>
  <dialog>
    <topic>
      <prompt>PDF-Inputfile</prompt>
      <type>file</type>
      <filter>'.pdf'</filter>
      <variable>inFile</variable>
    </topic>
  </dialog>

  <instance>
    <iterate file="{inFile}" variable="inPdf">
      <eval variable="outFile"
            expression="filecutending({inFile})+'_'
                        +{inPdf.pagenr}+'.pdf'" />
      <append>
        <template file="{inFile}"
                  pagenr="{inPdf.pagenr}"/>
        <output file="{outFile}" />
      </append>
    </iterate>
  </instance>
</job>
 

Open selection window

Description field in the selection window
A file can be selected
Only allow PDF files
Remember selected file name




Cycle through all pages of the selected PDF file

Output files are the names of the input file
extended by the page number

Append to the specified output file
Append only the current page of the input file
Specify output file

End of program loop