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 – Split PDF document into front/back pages
Select a PDF file with the mouse and split it into two PDF files. The PDF file "test_vor.pdf" contains all odd pages (front pages 1,3,5,7,...) and "test_back.pdf" contains all even pages (back pages 2,4,6,8,... ).
<?xml version="1.0" encoding="utf-8"?>
<job>
<dialog>
<topic>
<prompt>PDF-Inputfile</prompt>
<type>file</type>
<filter>'.pdf'</filter>
<variable>inFile</variable>
</topic>
</dialog>
<instance>
<eval variable="outVor" expression="filecutending({inFile})+'_vor.pdf'" />
<eval variable="outRück" expression="filecutending({inFile})+'_rück.pdf'" />
<iterate file="{inFile}" variable="inPdf">
<append>
<template file="{inFile}" pagenr="{inPdf.pagenr}"/>
<output condition="({inPdf.pagenr} mod 2)=1" file="{outVor}" />
<output condition="({inPdf.pagenr} mod 2)=0" file="{outRück}" />
</append>
</iterate>
</instance>
</job>
|
|
Open selection window
Description field
Select a file
Only allow PDF files
Remember selected file name
Output files calculated from the
extended name of the input file
Cycle through all pages of the PDF file
Attach only the current page
If necessary, append the (odd) condition for the output command to this output file
If necessary, append the condition (even) for the output command to this output file
End of program loop
|
|