Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

how to make pdf file using script

Alon Grod
Tera Expert

Hi,

Im trying to make a pdf file using business rule.

When Im using this function in my PDI, its working well:

var pdfAPI = new sn_pdfgeneratorutils.PDFGenerationAPI();

        var result = pdfAPI.convertToPDF(
            html.join(''),
            current.getTableName(),
            current.getUniqueValue(),
            fileName
        );

 

 

But when Im trying to implement this on my client's instance (they are working on premise and not in the cloud) its not working.

Any idea why or if there is another way to make a pdf file without this function?

0 REPLIES 0