Different PDF formats merge and sort

I am wanting to merge invoice PDFs and Statement PDFs into one file and print them in acct no order. Have set up datamapping, and handled multi page invoices, but am having trouble getting the two files to merge and sort

Hi Whitestone,

For this I would use Workflow. One can use the PDF Splitter plugin to split your first PDF into individual pages in a Text Condition branch and by using a Set Job Infos and variables plugin you can assign the account number to say jobInfo 9. Then in the Send to Folder you use %9 to name the PDF using the extracted account number with Concatenate Files checkbox selected. (%9.pdf) This ensures that multi paged invoices are concatenated too.

Then when the main branch is entered again once the next file, statements, is picked up, the main branch will do the same as the first but the Set job Info plugin will have a different Value because the statements account number can be in a different region on a page versus the invoices. (right click in the value box and select Get Data Location from the context menu.) To end this branch you can use the same Send to Folder as the first branch by right clicking the first Send to Folder, selecting Copy and pasting its properties. (You do this by right clicking the Send to Folder at the bottom of the branch and selecting Paste Properties from the context menu.)

EDIT: I forgot to add the merging of the PDF. Basically modify the branch to look like the below updated image. The Merge PDF Files plugin will sort the directory by name and output a merged PDF.

Regards,

S