Skip to content

Instantly share code, notes, and snippets.

@j-schreiber
Last active July 9, 2020 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j-schreiber/b553e7fe0b0195397ba0df8f5e01fc5d to your computer and use it in GitHub Desktop.
Save j-schreiber/b553e7fe0b0195397ba0df8f5e01fc5d to your computer and use it in GitHub Desktop.
PDF Visualforce page that uses the template property to dynamically load the formatting css
<apex:variable rendered="{! Template.LetterFormat__c != NULL }" var="LetterFormat" value="{! Template.LetterFormat__c }">
<apex:stylesheet value="{! URLFOR($Resource[Template.LetterFormat__c]) }" />
</apex:variable>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment