since ‎01-06-2020
‎16-11-2020
GnanendraPonnala
Level 1
Re: How to send generated PDF from javascript to Servlet.
Avatar

GnanendraPonnala

GnanendraPonnala
- Adobe Experience Manager
Hi @Manjunath_Kcorrect me if I am wrong, I think above solution will work when we upload pdf file (any file) manually, but in my case pdf is getting generated dynamically based on user inputs on page. How can I send generated pdf to backend(java class), so that i can use it in email service api to send email with pdf. Code responsible to download pdf on client-side -- pdfMake.createPdf(docDefinition).download(); Instead of download, I want to send pdf to java, so that I can use it to send mail w...

Views

134

Likes

0

Replies

0
How to send generated PDF from javascript to Servlet.
Avatar

GnanendraPonnala

GnanendraPonnala
- Adobe Experience Manager
Hello Team,I have generated pdf based user inputs through javascript using pdfmake library, now i have to send email with generated pdf to customers. I am able send mail with pdf using smpt.js library but due to some security concerns its not recommended. Now I am thinking to send/post the generated pdf to backend (servlet class ) & send using acs commons email api. Tried with below scenarious,1. I tried sending pdf as Base64 from js & decode the same in servlet using java.util.Base64. getDecode...

Views

191

Likes

0

Replies

3
Likes given to