- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2022 11:47 PM
Hi everyone,
I'm trying to create a UI Action to download/print emails as PDF. I have followed this suggestion but for emails is not usefull (html is not translated):
Thoughts?
Thanks in advance.
Dennis.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 12:34 AM
Hey,
You can create the UI action on the table and fetch html body and details.
One thing, you can't auto-download the file, but it will be added as attachment, I had done this for work notes.
Below code you can use:
var html = '<p>' + current.work_notes.getJournalEntry(-1) + '</p>';// you can fetch html body to pass on to the pdf
var result = new sn_pdfgeneratorutils.PDFGenerationAPI().convertToPDF(html,'incident', current.getUniqueValue(), 'My First PDF');//body of pdf, table where you want to add the pdf, sys_id of the record where you want to add the generated pdf, name of file
;
action.setRedirect(current);
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 11:20 PM
Hi Aman,
Thanks a lot, it works! The only thing to have the perfect functionality is to have signature images in the PDF also.
Do you know how I can do that?
Thanks again.
Dennis.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2022 12:34 AM
Hi Dennis,
For that you will have to integrate with a third party tool with the likes of Docusign or Adobe sign which can help you.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2022 01:51 AM
Hey Dennis,
Hope my response answered your original query and for signature part.
Found article which you can follow:
Add an image (signature) in a PDF using Quebec API "PDFGenerationAPI"
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar