1

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

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... – Pedro Ribeiro Nov 26 '13 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 – Keith Mancuso Nov 26 '13 at 16:27
  • Ok, I've found the problem. That was related with an issue related to a StaticResource. Solved. – Pedro Ribeiro Nov 26 '13 at 17:55
  • glad to hear it! cheers – Keith Mancuso Nov 26 '13 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 ? – Samuel De Rycke Dec 26 '13 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.