Merging PDF pages

matthias_livecode_150811 at matthias_livecode_150811 at
Fri Aug 25 11:00:23 EDT 2023

On which OS are you planning to do this?

On Windows and macOS you could make use of PDFTK server from <>

On macOS  PDFTK Server normally  has to be installed to use it. But you could follow these steps here to get it working w/o installation.

1. Do not use the d/l link for pdftk Server from the pdfLabs website. That version will not work on macOS11 and up. Instead download this version of PDFTK Server. Sid Steward created a new version but did not update the d/l link

2. to extract the pkg run the following in Terminal
pkgutil --expand <source path of pkg>  <destinaltion path>

If the source path to the pkg contains spaces then put quotes around the path.

After extraction you'll find the 2 folders lib and bin and some others .The 2 mentioned ones are needed. 

Now in LC you can use shell shell function to call the pdftk

set the folder to "path to the bin folder"

put shell("./pdftk  file1.pdf file2.pdf file3.pdf cat output mynewfile.pdf")

would create combine the three file..pdf file into a new one called mynewfile.pdf

I wrote this in a hurry, so i might have some error in my explanation. Just ask, if you have problems.



> Am 25.08.2023 um 15:10 schrieb Eller, Roger via use-livecode <use-livecode at>:
> It's been a while since I've posted a question here.  Is it possible to use livecode script to merge multiple 1-page PDFs into a multipage PDF without using Acrobat or other 3rd party software?
> Thanks.
> ~Roger
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list