I'm developing a visualforce page that is supposed to be rendered as PDF. This page is to be accessed from a public URL. The page has two components. Although I'm facing some problems. if I fill in the parameter renderAs = pdf the page is rendered as a blank page but only in the public url. Example: orgInstance/apex/myPage -> ok publicSite/myPage -> blank page

Any suggestion?


1 Answer 1


sounds like a permissions issue...happens to us all the time.

You have to make sure the public site "profile" permissions are allowed to access the page, the class, and all the objects it needs.

In the site settings click on the "Public Access Settings"

see this screenshot:enter image description here

  • That's what I though too, but, if I remove the tag renderAs='pdf' it works just fine... Nov 26, 2013 at 16:13
  • Hmm maybe post some of the code includint the controller code? tough to say without knowning more details. I know pdfs do work publically, we are using that for a number of clients Nov 26, 2013 at 16:27
  • Ok, I've found the problem. That was related with an issue related to a StaticResource. Solved. Nov 26, 2013 at 17:55
  • glad to hear it! cheers Nov 26, 2013 at 18:07
  • 3
    @PedroRibeiro Maybe you can explain what was going wrong in an answer so that people with a similar problem in the future are helped with your experience ? Dec 26, 2013 at 15:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .