Merge PDF / Assemble Job

Post Reply
gkapaurer
Newbie
Posts: 7
Joined: Fri Jul 22, 2016 11:42 am

Merge PDF / Assemble Job

Post by gkapaurer »

Hello,

I have one PDF which I split into single pdf-files and rename them.

The result is:
1_001.pdf
1_002.pdf
2_003.pdf
2_004.pdf
2_005.pdf
...
21_099.pdf
21_100.pdf

Now I have to merge the pdfs by the number before the "_".
I tried to assemble the jobs, but someehow Im doing it wrong.

Has someone a clue?
freddyp
Advanced member
Posts: 1023
Joined: Thu Feb 09, 2012 3:53 pm

Re: Merge PDF / Assemble Job

Post by freddyp »

There are two possibilities.

Either, the renamed files are in a folder and then you can just use "Merge PDF".

Or, the PDF's have been taken out of the folder in which they were after "Split PDF". That should be done with "Ungroup job"!! The individual files are then renamed and you assemble them again with "Assemble job - Scheme - Ungrouped job". Finish with "PDF merge".
gkapaurer
Newbie
Posts: 7
Joined: Fri Jul 22, 2016 11:42 am

Re: Merge PDF / Assemble Job

Post by gkapaurer »

Hi freddyp

my problem is, that I dont know how to get the files into one groupfolder.

I ungrouped the jobs, but I dont want to merge all pdfs into one single pdf again.
I only want to merge specific pdfs.
Thats why I renamed them into

1 PDF =
1_001.pdf,
1_002.pdf

1 PDF =
2_003.pdf etc
freddyp
Advanced member
Posts: 1023
Joined: Thu Feb 09, 2012 3:53 pm

Re: Merge PDF / Assemble Job

Post by freddyp »

In that case you can use "Assemble job - Scheme - Custom".

Set the "Job identifier" to [Job.NameProper] before the underscore; that will group all the 1_, 2_, 3_, etc.

Then the question remains how many there are per 1_, 2_,... Is there some way of knowing this? There must be because otherwise how did you rename the files correctly? That is the number (variable) that goes in "Number of files".

If you really do not know, set "Number of files" to 0, but "After N minutes" to 1 (or another number that seems appropriate.
gkapaurer
Newbie
Posts: 7
Joined: Fri Jul 22, 2016 11:42 am

Re: Merge PDF / Assemble Job

Post by gkapaurer »

If you really do not know, set "Number of files" to 0, but "After N minutes" to 1 (or another number that seems appropriate.
--> this works.
Thank you.



Later I will try to improve the flow by implementing the "Number of files".
gkapaurer
Newbie
Posts: 7
Joined: Fri Jul 22, 2016 11:42 am

Re: Merge PDF / Assemble Job

Post by gkapaurer »

Number of Pages per group would be:


count(/root/datei[text() = "[Job.JobState]"])
Post Reply