Ever wanted to combine PDFs using FileMaker? Here’s a sample file that does the trick.
[EDIT: Scroll down for new protytype.]
The sample file combines PDF files that are stored in containers. It uses 360 Works’ Scriptmaster to register external functions that work their magic on the PDF files. But let’s back up a bit.
When I first looked into this, I thought, “This should be easy.” Just use Append to existing PDF, an option in FileMaker’s Save Records as PDF script step.
Nuh-uh. The Append option only works if the PDF is generated from a FileMaker record. The Append option does not work for PDFs that are stored in containers.
So, I searched and discovered Scriptmaster, plus a custom jar library, which I think is called itext. Not sure, but I’ve heard that itext has licensing restrictions, which prohibit commercial use.
Anyway, I’m a novice when it comes to jar libraries. Others have commented that not all my script steps are necessary. Thing is, the prototype works. And until I see something better, I’m sticking with it.
1. 360 Works for their Scriptmaster awesomeness
2. Ocean West on FMForums for his/her MergePDF external function
3. John Renfrew for his help on the FileMaker Community Forum.
4. Matt Petrowsky for his FileOSPath custom function
2015-12-16 – The prototype broke when ScriptMaster was updated. Or maybe it was the prototype. All I know is that the prototype appears to work OK using ScriptMaster v 4.32. Check it out…
2016-01-09 – The prototype now includes ScriptMaster v4.32 for Windows. Plus script steps that test for:
1. The presence of v4.32
2. The system platform (Windows or Mac)
3. The application architecture (Windows 32- or 64-bit)
Unfortunately, this latest version of the prototype was not tested on Windows. None of the prototypes were. So, I’m really curious if it even works.
Crossing my fingers…