Windows command line execute pdftk.exe with argume

2019-08-16 18:18发布

问题:

I need to merge ~1000 pdf files. I call pdftk from my program for this purpose. However, it happens that input arguments exceeds maximum Windows command line character length of 8192 and i get error.

I tried to store my input in txt file, but without success:

pdftk < file.txt

type file.txt | pdftk

It looks like, that pdftk does not get input from redirection, pipe operators.

I tested it on Windows 10.

Does anyone know how it can be achieved?