function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kendall BuchananKendall Buchanan 

Cut-off Images in PDFs in Visualforce

renderAs="pdf", in VisualForce, appears to have been broken in recent days, for rendering images.

We've been producing PDF invoices with our logo now for six months, and a few days ago, the PDF generator started cutting the logo in half. We've spent two days trying to isolate the problem, and concluded that renderAs="pdf" is the source.

When we remove renderAs="pdf" from the Visualforce page, the image appears correct in HTML. If we replace it, the image is cut in half, with the second half trailing into a light gradient. The logo is a static resource hosted in Salesforce.

Thoughts anyone?
Leslie  KismartoniLeslie Kismartoni
Can you add a height to a css selector on the page rendered as a PDF?

If you know the height of your image, just add that to the IMG tag?