O'Reilly logo

Visualforce Developer's Guide by W.A.Chamil Madusanka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Rendering PDFs

When we use components in a Visualforce page and the page is rendered as a PDF, these components do not always work. We must not use components that depend on JavaScript actions and Salesforce standard stylesheets.

  • The following components are safe to use in PDF rendering:
    • <apex:composition> (as long as the page contains PDF-safe components)
    • <apex:facet>
    • <apex:dataList>
    • <apex:define>
    • <apex:include> (as long as the page contains PDF-safe components)
    • <apex:insert>
    • <apex:image>
    • <apex:repeat>
    • <apex:outputLabel>
    • <apex:outputLink>
    • <apex:outputPanel>
    • <apex:outputText>
    • <apex:page>
    • <apex:panelGrid>
    • <apex:panelGroup>
    • <apex:param>
    • <apex:stylesheet> (as long as the URL isn't directly referencing Salesforce stylesheets)
    • <apex:variable>
  • The following components ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required