You need to sign in to do that
Don't have an account?
Kendall 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?
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?
If you know the height of your image, just add that to the IMG tag?