- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 12:14 AM
I am working with
PDFGenerationAPI api.
I am trying to use
convertToPDF(String html, String targetTable, String targetTableSysId, String pdfName) function.
PDF is getting generated but with the HTML text, I need the outcome of the HTML to be generated as PDF.
I have elaborated the scenario below.
After Business rule to created and attach pdf on user table.
It is working properly.
u_pdf_templates table form.
The generated PDF contains the html text present in the "u_certificate" field but I want the output of the HTLM to be generated as PDF.
PDF should look like this below.
currently the pdf is getting generated with the HTML text.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:06 AM - edited 07-26-2023 01:08 AM
Hi @Hrishabh Kumar,
From your screenshot, it appears that in your Pdf Template record you have added your HTML as plain text, which will result it it being escaped. Instead, try adding via the HTML code editor by clicking the code <> button and pasting your HTML string into the popup instead:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:06 AM - edited 07-26-2023 01:08 AM
Hi @Hrishabh Kumar,
From your screenshot, it appears that in your Pdf Template record you have added your HTML as plain text, which will result it it being escaped. Instead, try adding via the HTML code editor by clicking the code <> button and pasting your HTML string into the popup instead:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:19 AM
Thanks for the solution. @Nick Parsons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 08:18 AM
Hi, did this code work for you ? i tried the same thing but the pdf is not being attached to the record.