Generated PDF using PDF generation API has margin issue, JPG image seems to be causing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 04:32 PM - edited 04-14-2025 04:34 PM
I am troubleshooting a case where the generated pdf has margin issue, the content is truncated or cut from the right side. Upon testing same data used, when one image is removed or not included the PDF is generated correctly.
Maybe you have experienced this kind of issue or if you have any idea if an image can cause such error and how to prevent it. thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 08:52 PM
so what approach are you taking then?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 04:14 PM
I have no fix so far, the pdf generation is working if that specific image is not inserted, when other image/jpg is inserted the pdf generated has no issue. The workaround for now is to take another image to use for pdf generation. Currently I am still troubleshooting why that specific image is causing the margin issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 09:18 PM