You need to sign in to do that
Don't have an account?
jernst
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.
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
All Answers
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
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