ServiceNow PDF Generation API Magic
PDFGenerationAPI API
Provides support for PDF conversion and handling PDF fields.
This API is part of the ServiceNow PDF Generation utility plugin (com.snc.apppdfgenerator) and is provided within the sn_pdfgeneratorutils namespace. The plugin is activated by default.
These methods can also be used for documents created by non-catalog items. The methods in this class enable the following tasks:
Dynamically generate a PDF from an HTML string and attach it to a record
Fill fields in a PDF
Sign a PDF
Unflattened, flattened, or partially flattened
Retrieving PDF field data
Related APIs:
PdfMergeSignRequestor
SVGToPDFConversionAPI
convertToPDF(String html, String targetTable, String targetTableSysId, String pdfName)
Converts an HTML string to a PDF document.
To generate a PDF with header and footer information, such as page numbers, use convertToPDFWithHeaderFooter().
If this video is helpful then, please do not forget to like, subscribe and share my youtube channel Technomonk.
Thank you!!!…(read more)
Convert Word 2 PDF: Word to PDF Converter
Convert PowerPoint 2 PDF: PPT to PDF Converter
Convert Excel 2 PDF: Excel to PDF Converter
Convert an Image 2 PDF: Image to PDF Converter
Convert HTML 2 PDF: HTML to PDF Converter
More Tools: PDF Converter
I see a way to have footer text, but I don't see a way to do header text. I tried similar attributes to those of the footer text, but they didn't present. How do we have header text?
Great guide thanks, just be careful with adding current.update(); to BR's 😉
Hey , I need to genrate a pdf by clicking on a UI action for a custom form and need to fetch the details of the ssame form like Name , Email , etc . Can you please help?
Olá, muito bom o vÃdeo.
Hello there
Can we generate PDF for catalog variables and attach it to RITM.
Here is the requirement
1. Generated PDF should capture the value entered for all the variables
2. PDF should be attached to the RITM.
Please let me know if you have a solution for this. Quick response is much appreciated.
This was nice!
suppose any record having any images , how we capture images in pdf ?
Thanks for sharing the knowledge sir.
Hello TechnoMonk. Great job. Watching you from Senegal.
Is it possible to dynamically change the name of the 'employee' on certificate by passing parameters from PDF Generation API call?
Hello TechnoMonk, kindly let us know how to change the font using PDFGenerator?
Hi,
Is it possible to get HTML code for reference!
Thank you for sharing this.