I have a VF page built on Lightning Design system (LDS) framework. When I add the renderAs="PDF" attribute, pdf does not show the content with LDS CSS/Style.
Reference Link: SLDS not rendering CSS styling when VF renderAs PDF
Note1: apex:page tag has all the usual attributes which is required for pdf *
(showHeader="false" sidebar="false" standardStylesheets="false" docType="html-5.0" applyHtmlTag="false" applyBodyTag="false")
Note2: Salesforce supports external stylesheet. That is, CSS file stored in Static resource. Link of example: Creating Professional PDF Documents with CSS and Visualforce
I also copied the whole css content from the LDS CSS file (Path: 'assets/styles/salesforce-lightning-design-system-vf.min.css'
) and applied as inline CSS in VF page. But still, there is no luck.
My styleSheet is referred in VF page as below
apex:stylesheet value="{!URLFOR($Resource.SLDS221,
'assets/styles/salesforce-lightning-design-system-vf.min.css')}"
Page works absolutely fine if it is not rendered as PDF.
Any suggestions?