How to combine .pdf pages into one document?

Is there a simple way to combine individual .pdf pages into one document? Are there any included libraries to pull from to accomplish this? Thanks!

I generally do this via a command shell and the pdftk binary. (Now called PTFtk Server.)

That was much easier than I expected. Thanks!

I’m finally getting around to writing the code in Ignition to make this work. How do you execute pdftk? I’ve tried subprocess and setting the directory to where my files are and os.chdir(directory) to set the directory then os.system(command). Both are returning errors. Subprocess returns “Cannot run program “pdftk” (in directory…” and system returns “‘pdftk’ is not recognized as an internal or external command,
operable program or batch file.”

I’m generating temp files using the system.file.getTempFile command and I want to combine some of these so the directory is the user’s temp directory. Not sure if thats the issue or I’m just not calling pdftk correctly. Thanks!

This generally means you aren’t calling pdftk correctly. Supply the complete path to SubProcess.

Yep, that was the only issue. Works now. Thanks!