

SetTimer, Merging, Off turn off process timer Process, Exist, pdftk.exe, Check for pdftk Gui, Add, Progress, vlvl -Smooth 0x8 w350 h18 PBS_MARQUEE = 0x8 ~ Credit to polyethene for the progress bar routine ~ (‘cos merging 800 to 2000 PDF’s can take several minutes) ~ Create a second GUI showing looping progress bar Gui, Destroy Close the first GUI so it doesn’t muck up the progress bar Run %comspec% /c pdftk %InputVar%*.pdf cat output %OutputVar%combined.pdf,, hide Pass the parameters to pdftk and hide the commandline window on completion MsgBox pdftk %InputVar%*.pdf cat output %OutputVar%combined.pdf Use MsgBox to test output to commandline Gui, submit Save the selected folders to their associated variables
PDFSAM BASIC 2.2.2 FOR WINDOWS PDF
MsgBox % “Found ” count ” PDF files`nNow select the OUTPUT folder.”įileSelectFolder, OutputVar,, 4 Select a destination folder Count and display the number of files in the source folder for infoįiles:=(files ? “`n” : “”). Gui, Add, Button, x22 y65 w100 h30, CancelįileSelectFolder, InputVar,, 4 Select a source folder Gui, Add, Button, x12 圓0 w120 h30, INPUT If it’s of any use to you, here’s my Autohotkey script:Ĭode: Gui, Add, Text, x25 y10 w170 h20, Select INPUT folder Using Autohotkey, I even put a little GUI front-end on it and compiled it to an executable to make it easier to deploy to other staff. I’ve used it at work to automate converting nearly 1200 PDFs into one mega-PDF on a daily basis. By issuing the command pdftk D:pdf_input*.pdf cat output D:pdf_outputcombined.pdf all the PDFs in the source folder are combined into a single PDF in the target folder. This lets me use something like D:pdf_input as the source folder and D:pdf_output for the target folder. I don’t understand the bit about creating PDFs from other PDFs but for merging PDFs I use a free PDF toolkit.
PDFSAM BASIC 2.2.2 FOR WINDOWS PLUS
For doc and docx, use either Word 2010 onwards (which allows creation of PDF’s using File > SaveAs…) or Writer from the (free) LibreOffice suite which, by default, has a handy ‘ Create PDF‘ button in the standard toolbar.Īlternatively, for doc and docx plus JPGs, use a ‘PDF pseudo-printer’ like Foxit Reader to ‘ Print to PDF‘ from within other apps.
