Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Encrypting PDF while sending Email to customer in Adobe Campaign Classic

Avatar

Avatar
Validate 1
Level 1
mayank_singh
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
mayank_singh
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
mayank_singh
Level 1

13-05-2021

Hello Everyone,

 

I am trying to send PDF files with dynamic data to customers, but would like to encrypt the same.

 

The above case scenario is just like we receive the Credit Card Statement, where in the PDF is password protected.

 

This needs to be done in Adobe Campaign Classic.

 

Please share your inputs on this.

 

Thanks

Mayank

Encrypt PDF in ACC Email
View Entire Topic

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

958 likes

Total Posts

1,079 posts

Correct Reply

506 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

958 likes

Total Posts

1,079 posts

Correct Reply

506 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

19-05-2021

Hi,

 

Follow these steps:

  1. 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
  2. Grant marketing users createProcess right so they can use execCommand()
  3. Add a js activity before your delivery (use a js library for maintainability) that does this:
    1. Loop over inbound transition table (vars.targetSchema):
    2. For each row, use execCommand() to generate desired pdf and pipe through qpdf to encrypt. Name the files after their recipient id's
  4. 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