Windows command line execute pdftk.exe with arguments length > 8192 characters

孤者浪人 提交于 2019-12-11 15:39:32

问题


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?

来源:https://stackoverflow.com/questions/46727043/windows-command-line-execute-pdftk-exe-with-arguments-length-8192-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!