Generated PDF using PDF generation API has margin issue, JPG image seems to be causing it.

ryev_a_
Tera Contributor

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!

7 REPLIES 7

@ryev_a_ 

so what approach are you taking then?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.