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
jernstjernst 

Sites and renderas="pdf"

I'm trying to use the renderAs="pdf" page settings on a sites page.

Works fine in sandbox, it works fine if I remove the renderAs from  the page tag and render as straight html on production. I get the  dreaded "InMaintenance" page however, if i try and renderAs pdf in production.

 

Anyone else seeing this? Have a solution?

 

Thanks,

Jason

 

Update: I've tried a few things, and it appears that it's happening because of static resources in the pdf.

Still no idea why it's bombing though as those static resources work fine in the html version.

 

Message Edited by jernst on 06-12-2009 10:32 AM
Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

This issue is fixed with summer09. However, only na1 and na6  have summer 09 at this point.
Until your org gets summer09 you can use the secure url (like https://xxxx.secure.force.com) for the pdf generation

Update 

seems like we do have a bug. we are working on a fix 

Update
this is fixed in production 
Message Edited by Bulent on 07-14-2009 06:28 PM

All Answers

BulentBulent

This issue is fixed with summer09. However, only na1 and na6  have summer 09 at this point.
Until your org gets summer09 you can use the secure url (like https://xxxx.secure.force.com) for the pdf generation

Update 

seems like we do have a bug. we are working on a fix 

Update
this is fixed in production 
Message Edited by Bulent on 07-14-2009 06:28 PM
This was selected as the best answer
sc12345sc12345

I see a very similar issue. 

 

I have a VF page (called prodinfo ). 

 

On Sandbox

- Accessing as regular VF page (URL looks like http://xxxxx/apex/prodinfo)

- - - HTML version output - works fine

- - - PDF version output (by just adding 'renderas="pdf" in the page tag) - works fine

 

- Accessing as Sites page (after setting up a site to refer to this page. URL looks like http://xxxxx.force.com/prodinfo)

- - - HTML version output works fine

- - - PDF version output (by just adding 'renderas="pdf" in the page tag) - works fine

 

On Production

- Accessing as regular VF page (URL looks like http://yyyyy/apex/prodinfo)

- - - HTML version output - works fine

- - - PDF version output (just by adding 'renderas="pdf" in the page tag) - works fine

 

- Accessing as Sites page (after setting up a site to refer to this page. URL looks like http://yyyyy.force.com/prodinfo)

- - - HTML version output (regular page tags etc.) works fine

- - - PDF version output (just by adding 'renderas="pdf" in the page tag) - FAILS with the dreaded InMaintenance error.

 

There is not change to code other than to add and remove the renderas clause.

 

As soon as I remove the renderas="pdf" part on the page, the VF page on production accessed as a Sites page shows up fine.

 

Any help / information / pointers greatly appreciated.

 

Thanks

SC