Batch: merge pdfs with same "filename-part"

Discuss and share scripts and script files...
Post Reply
galtar53
Posts: 18
Joined: 19 Nov 2019 16:33

Batch: merge pdfs with same "filename-part"

Post by galtar53 »

I want to merge some PDFs, But I have to merge a lot of pdfs with filenames like this (for exemple) :
Capture.JPG

The batch-script should parse the filenames and merge all files which starts with the same filename, like (for exemple) :

P388
P4632

Thank you
To see the attached files, you need to log into the forum.

RalphM
Posts: 2089
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Batch: merge pdfs with same "filename-part"

Post by RalphM »

I'm not aware that XY does any merging of pdf files and would rather expect to use a pdf tool for such and not a file manager.
If you find a pdf tool with CLI you could certainly script XY to search for the files to be merged and then call the pdf tool from the same script.
Ralph :)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Batch: merge pdfs with same "filename-part"

Post by highend »

PDFtk (https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/) can be used for such a purpose (the cli part of it)...
One of my scripts helped you out? Please donate via Paypal

galtar53
Posts: 18
Joined: 19 Nov 2019 16:33

Re: Batch: merge pdfs with same "filename-part"

Post by galtar53 »

Thank you

Post Reply