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
Capture.JPG (25.3 KiB) Viewed 1031 times

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

P388
P4632

Thank you

RalphM
Posts: 1929
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 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

highend
Posts: 13260
Joined: 06 Feb 2011 00:33

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 or paypal_donate (at) stdmail (dot) de

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

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

Post by galtar53 »

Thank you

Post Reply