3

I want to generate PDF document on the basis of data available in my customer DataExtension and print it in proper format so that it can be sent to customer by a email. is there any AmpScript, SSJS, API AmpScript functions or any other way to generate PDF document in ExactTarget?

If anyone has any ideas or experience with this your help would be greatly appreciated.

3
  • Why not just build a dynamic email? Commented Jun 2, 2016 at 11:32
  • Hi Adam, we need to attached the generated PDF in emails and don't want to use dynamic email.
    – Palash Rai
    Commented Jun 2, 2016 at 11:36
  • 1
    Obviously, business requirements are, well, requirements. However, sometimes it's best not to put any cumbersome barriers between the data and your customers. PDFs are a barrier, especially in when a simple email is such a flexible and accessible medium. Commented Jun 2, 2016 at 13:52

1 Answer 1

4

Your best bet would be to generate the PDFs outside the platform.

I suppose you could build a Script Activity that uses some sort of JS library (like referenced in this post) to generate the PDF from HTML and then create a Portfolio object for it with the SSJS/AMPscript API functions. It'd be a good idea to build all of the PDFs for your audience in advance by adding aforementioned Script Activity to an Automation.

Once the PDF has been uploaded to the Portfolio (or simply accessible via public web address), then you can certainly attach it to an email in the platform with the AttachFile() AMPScript function.

1
  • 1
    Thanks Adam! Maybe its better to generate PDFs outside the platform.
    – Palash Rai
    Commented Jun 7, 2016 at 5:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .