I have PDF Files under root folder in sub folders with diffrent (Dynamic) names and I want to merge the PDF file based on matching case as below.
Input date is like this
Root folder : Cnames
Sub folder: A
PDF FIles in A
Sub folder: B
PDF FIles in B
Ouput Requirment Combine PDFs as this:
Create a new root folder as Cnames_Today date
Create Sub folder: A
Merge: BL123_INV1 + BL123 as 1file
Sequence of pages : BL123_INV1 should be 1st page.
Output File name should be = BL123_INV1
Merge: ZBL124_INV2 + ZBL124 as 1file
Sequence of pages : ZBL124_INV2 should be 1st page.
Output File name should be = ZBL124_INV2
CreatSub folder: B
Merge: CBL124_INV3 + CBL124 as 1 file and
CBL124_INV4 + CBL124 as another 1 file
Sequence of pages : Same as in sub folder A
Output File name should be =
1st file CBL124_INV3
2nd file CBL124_INV4