Pdffile merge

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Lotrug
New Member
New Member
Posts: 1
Joined: 2008-10-20, 10:26 UTC

Pdffile merge

Post by *Lotrug »

Looking for a plugin that will merge a bunch of pdffiles into one big file that I will print out.

I mark some pdffiles then hit a button and I get one big file in the same dir as the others.

any suggestions?
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1008
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Get PDFTK from here.

Put it on a button with these parameters:

Code: Select all

 %S cat output onebigfile.pdf
Done
gazmoz17
Junior Member
Junior Member
Posts: 3
Joined: 2021-07-15, 19:46 UTC

Re: Pdffile merge

Post by *gazmoz17 »

Hi,

Is there a way for this to automatically merge from my TC highlighted pane?

So I've used xpdf search to search all pdf doc's containing a supplier Purchase Order number e.g. 3702, I wish to select multiple results in TC left pane and then press my button PDFTK button (or other pdf merge program) & merge said files?

I don't think you can drag & drop PDFTK so I have to manually Click PDFTK button Ive added, then Add PDF and browse the file path of each indiv result...surely there a better way of browsing and reselecting file paths my xpd search has found? Is there a way to select only certain results of xpdf search before Fedd to list box so there not all sent to my pane.

Brand new user from yesterday, so bear with me please 😂.
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Pdffile merge

Post by *Stefan2 »

Hi and welcome 2gazmoz17

See the post above of yours for an possible way.


To learn more:
- right click an button in the buttonbar
- choose "Change..."
- click [Help]
> %S insert the names of all selected files into the command line.
> %L, %F, .... create a list file in the TEMP directory with the names of the selected files (you can use any scripting language to loop over that file)


Later more...
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Pdffile merge

Post by *Gral »

2 gazmoz17
If you have PDFtk installed in default location - "C:\Program Files (x86)\PDFtk\bin" add this button to your buttonbar (copy this code and paste on empty space on buttonbar)
This use "pdftk.exe" - command line program, NOT GUI, and environment variables for path.
Take it as a example, starting point.

Code: Select all

TOTALCMD#BAR#DATA
"%ProgramFiles(x86)%\PDFtk\bin\pdftk.exe"
%S cat output %T%o.(merged).pdf
%ProgramFiles(x86)%\PDFtk\bin\PdftkXp.exe
PDFtk


-1
Post Reply