- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
Follow these steps:
- Install headless chrome or phantomjs to generate pdf's, along with something that can password protect pdf's, like node-qpdf. May already have phantomjs as a Campaign dependency
- Grant marketing users createProcess right so they can use execCommand()
- Add a js activity before your delivery (use a js library for maintainability) that does this:
- Loop over inbound transition table (vars.targetSchema):
- For each row, use execCommand() to generate desired pdf and pipe through qpdf to encrypt. Name the files after their recipient id's
- In the delivery set attachment to 'File name is computed during delivery of each message' and personalize accordingly, e.g. /tmp/<%= recipient.id %>.pdf
Thanks,
-Jon