54 views

PDF Functionality that is not Supported by the PDF generator plugin

Problem

The TinyMCE editor allows rich text creation that our PDF generator plugin (com.snc.pdf_generator) was not designed to support. TinyMCE is the standard editor for the ServiceNow platform, so it can’t be simply updated to not allow certain HTML elements that PDF generation supports. 

Symptoms

If you have the PDF plugin installed (com.snc.pdf_generator) and you are generating PDF using an UI action. However, some element do not appear on the final PDF generated.

Cause

There are several elements that are not supported by the PDF generator. We use iText technology on which the following are non-supported HTML elements: 

  • Vertical alignment
  • Page breaks
  • Table-specific color (text color is supported)
  • Custom spacing between blocks of text or images
  • Custom column width in HTML tables
  • Custom column alignment in HTML tables
  • Custom border styling in HTML tables
  • CSS text manipulation (including CSS based font tags)
  • Inline styling
  • Background images
Resolution
Please educate your users that when printing using the PDF options on the instance that use the PDF generator plugin, it could result on some element being missed from the final output. On those cases, please use the browser printing capabilities for a more accurate representation of the forms.

 

Note:ServiceNow PDF generation plugin has some limitations on the HTML elements that can process.

 

 

Article Information

Last Updated:2018-08-03 05:15:19
Published:2018-07-25