![]() Write a program that looks for a match on the first three characters of the file names - or on all the characters in the file name before an underscore (needed if the file names can be a varying number of characters before the underscore). I just tested it with the input files and the two required PDFtk files (pdftk.exe and libiconv2.dll) residing in the same folder and it worked perfectly. You'll need to handle paths and the location of PDFtk, but other than that, the above works. Here's the simple approach: off set /p fn=Enter the output filename: pdftk file1.pdf file2.pdf cat output %fn%.pdf del file1.pdf del file2.pdf You can make it as fancy or as simple as you want. The rest of the batch file would be getting the output file name and deleting the source files. Pdftk file1.pdf file2.pdf cat output outputfile.pdf Here's the one-line solution using PDFtk: I don't know why they called it that, but it's just an EXE with a DLL that runs on XP, Vista, W7, and W8 (it does not have to run on a "server" OS.it also runs on Mac, but I've never used it on that). The command line version is called PDFtk Server and may be downloaded here: ĭon't be misled by "Server" in the name. It comes in both command line and GUI versions. ![]() I recommend using the the PDF Toolkit (PDFtk), an excellent (free!) product that has numerous features to manipulate PDFs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |