The CreatorCon Call for Content is officially open! Get started here.

I am a creator — PDF Document Generator - Walter Brame

walter_brame
ServiceNow Employee
ServiceNow Employee

------------------

EDIT

------------------

A lot has changed over the years.

Be sure to check here first:

https://developer.servicenow.com/dev.do#!/reference/api/quebec/server/sn_pdfgeneratorutils-namespace/CellBothAPI?navFilter=pdf

Have also enjoyed repurposing Webkit HTML to PDF plugin:

https://docs.servicenow.com/bundle/geneva-performance-analytics-and-reporting/page/use/performance_analytics/task/t_ActivateWHTP.html

------------------

ORIGINAL

------------------

PDF Document Generator is used by the ServiceNow, Inc. sales organization and is a generic HTML form creation and PDF Document generation framework.   The framework supports creating HTML forms and PDF files using any UI Form in the instance as a template.

 

The PDF Document Generator will replicate how that standard UI Form looks but then provides the functionality to change it easily as a front-end user without requiring development.

 

A PDF feature exists today in the standard platform but it is not customizable. The PDF Document Generator allows for rapid deployment of multiple templates and making changes on the fly to every component visible on the screen very quickly and easily.

 

Previously, the Sales organization was challenged with the ability to produce Quotes and Sales Orders from a CRM environment. With this custom ServiceNow, Inc. app in place, it is now possible for the front-end business users (sales operations, systems managers, administrators, power users, non-developers) to access configuration tools that put control of the following features directly into their hands:

 

- Add/remove fields as needed

- Change any fields placement and the field's label, orientation, or value

- Change any section/grouping or fields / Table of information (E.g. "Section 1", "Section 2", etc.)

- Add/remove new sections present in the form

- Manage an entire section's placement, splits, annotations, and headers

- Re arrange the placement of components in the form (E.g. one component relative to the next)

- Change the look and feel (color, border, padding, alignment, etc.) via common HTML and CSS style attributes.

- A scripting API to create dynamic conditions to change any aspect of the form and data (style, value, label, section, etc.).

- Save templates of form layouts

- Preview and print to PDF

 

The functionality of this PDF Document Generator was made possible by leveraging the ability to write custom scripts in the standard ServiceNow platform, and by having access to the backend table structure and data where forms are stored in the instance (standard UI page, CSS, HTML, and JavaScript).   A single developer, in a time frame of one business quarter, built the PDF Document Generator.

 

pdf_doc_gen_img_1.png

pdf_doc_gen_img_2.png

pdf_doc_gen_img_3.png

pdf_doc_gen_img_4.png

pdf_doc_gen_img_5.png

pdf_doc_gen_img_6.png !

 
99 REPLIES 99

chhavis
Kilo Explorer

I had the problem with the PDF Document Generator - 1.3 (Dublin & Eureka) as well. Same error "com.itextPDF".


I had to work with SN support to back out the Walter's PDF application because it wouldn't back out.


Installed Jack McKenna's General PDF Generator v4.1 for the Store and it works fine now.


india
Tera Guru

Nice concept,but while i am trying i am getting an error Illegal attempt to access class 'com.itextpdf' via script



Please help me out


Thanks in advance


jeffreyl
ServiceNow Employee
ServiceNow Employee

I wonder if there is any locations where I can download some existing scripts to create something link a typical client facing billing statement, or the document samples shown in this article?



Thanks.


Chris P_
Tera Expert
Urgh just typed a story here and got logged out before pressing reply, poof post gone... 😐

Anyway, when will this PDF generator get its proper upgrade?

With the implementation of ServiceNow HR module this feature is becoming more and more important.

But with the current flawed editor and missing CSS options only seen when the PDF is created, it's not a great selling point...
Having default 2cm margins at both sides is just wasting space, but there doesn't seem to be a way to change it... (please tell me I missed it and provide the way to do it!)

I'm really hoping SN picks this up so we can create proper PDF documents from the system...

Still on Jakarta, so if this was fixed in Kingston, I've said nothing!