Currency Symbol having extra spaces when generating a PDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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
Snip from the Background Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago