+ Start a Discussion
uptime_andrewuptime_andrew 

RenderAs PDF - Page Loading Extremely Slow

Hello,


I've created a VF page, and when I load w/o the 'renderAs="pdf"', it loads fine.

 

When I add 'renderAs="pdf"', the browser just spins and takes ages to return.

 

Why would this be happening?

 

 

TheSwamiTheSwami

If it isn't too complicated, can you post the VF code?

homersantoshomersantos

It sounds like the issue I have when I have development mode turned on.

Ankit AroraAnkit Arora

Indeed if development mode is on, then it will take time as when you enable the development mode then it fetches the class code and visualforce page code, also if view state is enabled then it will take more time.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

uptime_andrewuptime_andrew

Thanks for your responses everyone;  it ended up not liking the html for including an image, so I ended up uploading the image as a Resource and pulling it that way.

 

 

TheSwamiTheSwami

If your VisualForce markup includes images, the salesforce PDF renderer makes outbound calls to retrieve those images.  If the image is inaccessible to salesforce.com servers (i.e. behind a corporate firewall), you can experience problems like you described.