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

Language loading issue in dynamic PDF generated through 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 want to send dynamic data to customers in a word(docx) as an attachment file which later converts itself into PDF, in an email delivery through Adobe Campaign Classic.

 

But as the email is received and I check the file the rest of the content in the file comes as blocks.

 

The word file attached has Thai language in it and the dynamic data are numbers. This is working fine when the content is in English.

 

How can we resolve the same in Adobe Campaign Classic.

 

Thanks

Mayank

Language Load Issue in PDF File

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

958 likes

Total Posts

1,082 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,082 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. Grant marketing users createProcess right so they can use execCommand()
  2. 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 with libreoffice (Campaign dependency). Name the files after their recipient id's. This should look something like: 
      /usr/bin/env soffice --headless --convert-to pdf --outdir /tmp file
  3. 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