Merging PDF pages
matthias_livecode_150811 at m-r-d.de
matthias_livecode_150811 at m-r-d.de
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 PDFLabs.com <http://pdflabs.com/>
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
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg
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
Example
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.
Regards,
Matthias
> Am 25.08.2023 um 15:10 schrieb Eller, Roger via use-livecode <use-livecode at lists.runrev.com>:
>
> 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 lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list