Merged pdf-files

Post Reply
ramses
Newbie
Posts: 4
Joined: Wed Mar 22, 2023 10:06 am

Merged pdf-files

Post by ramses »

Hi,

I have a group of pdf-files, all with the same name, but with 2 different prefixes:
a_1_XXX.pdf, a_2_XXX.pdf, a_3_XXX.pdf, ...
b_1_XXX.pdf, b_2_XXX.pdf, b_3_XXX.pdf, ...
...

In both directions the number of files is variable, but i can't know in advance how much.
For the letter, after z it continues to aa, ab, ...
The letter-prefix and the number-prefix are also PrivateData.

I would need different merged pdf's, one for each letter in the right order of the numbers. So one pdf for a_1 + a_2 + a_3 + ..., one pdf for b...
I tried with Assemble job, but can't seem to get it right.

I hope someone can help me with this one?
Thanks in advance,
Ramses
User avatar
magnussandstrom
Advanced member
Posts: 345
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Merged pdf-files

Post by magnussandstrom »

Would this work for you?

Since you don't know how many files you are getting I set a time limit in Assemble job to 10 minutes (you can change it as you like). The flow will group jobs with the same prefix (before the first underscore) and sort alphabetically when merging the PDF.

I suggest to set the Assembled job folder name to [Job.NameProper:Before="_"]_merged or similar.

Assemble_job.png
Assemble_job.png (179.53 KiB) Viewed 545 times
ramses
Newbie
Posts: 4
Joined: Wed Mar 22, 2023 10:06 am

Re: Merged pdf-files

Post by ramses »

Yes, this does the trick.

Thanks!
Post Reply