The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Currency Symbol having extra spaces when generating a PDF

Rohit_Singh_19
Tera Contributor

Hi All,

 

In HR Core Scope I am generating a PDF document from Document Template (sn_doc_template) and using Document Template Script (sn_doc_template_script) where I am pulling up the HR Profile-> Custom Currency Field (reference Field to  ->fx_currency) table. I am facing the issue for user having FX Currency only for ILS having currency symbol (₪). The other currency symbol appearing fine in the PDF without an extra space before after the symbol. I have checked there is no space in the Currency symbol field. I have also checked in back ground script to print the value from the symbol and there it does not have any space. 

 

The instance is in Yokohama

 

Snip from the PDF

Rohit_Singh_19_0-1756317211340.png

 

Snip from the Background Script

Rohit_Singh_19_1-1756317260911.png

 

 

9 REPLIES 9

Rafael Batistot
Kilo Patron

Hi @Rohit_Singh_19 

 

This is usually not a data problem, but a font rendering / encoding issue in the PDF generator used by ServiceNow (which is iText under the hood in Yokohama).

 

  • The ₪ (U+20AA, “New Sheqel Sign”) is known to render oddly in some PDF engines.
  • In some fonts, it has non-standard glyph metrics, which can cause extra spacing before/after when typeset.
  • Since other currencies render correctly, it’s not your script logic, but a PDF template + font fallback issue.

 

Hi @Rafael Batistot ,

 

Thank you for your response. Do you know how can I fix it?

@Rohit_Singh_19 

 

See this post, here the situation is changing for Japanese unit amount (¥)

 

May you try to change for your one 

 

https://www.servicenow.com/community/developer-forum/currency-settings/m-p/1463169

Hi @Rafael Batistot ,

 

I don't the solution mentioned here will apply to my problem.