+ Start a Discussion
Saurav khuranaSaurav khurana 

PDF generation failed. Check the page markup is valid.

I used <apex:image url="{!$Resource.XYZ,'somePic.png'}" rendered="{!showImage}"/>

showImage is to show image if that retruns true.


and there are couple of places on the page.. I used <apex:image....


It was working earlier but started throwing exception i.e. "PDF generation failed. Check the page markup is valid."


After hits and trails, I found that

When I remove all apex:image, it renders PDF and does not throw any exception.


What could be the cause, and How can I show the required images, I also tried with simple HTML Img tag, it did not work.


Please suggest asap.







There appear to be issues with PDF generation at the moment.  Best to raise a case with SFDC support.

Richie DRichie D

This is known by SFDC. Have a look at http://success.salesforce.com/issues_view?id=a1p30000000Rr87AAC


Just spoken to support - they'll update when they have a fix.