Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLDS not rendering CSS styling when VF renderAs PDF #341

Closed
matthew-whaley opened this issue Oct 26, 2016 · 10 comments
Closed

SLDS not rendering CSS styling when VF renderAs PDF #341

matthew-whaley opened this issue Oct 26, 2016 · 10 comments

Comments

@matthew-whaley
Copy link

Does the LDS work when a visualforce page is renderAs PDF? I am not able to get any css styling on backgrounds, font color, etc.

@kaelig
Copy link
Contributor

kaelig commented Oct 26, 2016

Thank you for your question!

This isn't something we've been looking into so far, but we'll keep it in the back of our minds and keep you updated if we have any news!

@matthew-whaley
Copy link
Author

Thanks @kaelig , do you happen to know if you can currently use the Lightning Design System for styling when rendering as a PDF? It seems the positioning works but I cannot get the colors or anything to work when the VF page is rendered as a PDF.

@kaelig
Copy link
Contributor

kaelig commented Oct 26, 2016

Sorry to hear that. I'm not familiar with this use case, sorry!

Could you ask this question on the developer forums? You might get better answers there.

@mouttaqui
Copy link

Visualforce PDF support only inline CSS

@SyedMoosaNazirTN
Copy link

Hi Team,

Visualforce pdf supports internal and external css files. But the issue is SLDS css file is not supporting in Visualforce PDF for some reason.
The below URL works fine with internal CSS file(stored CSS file in Static resource)
https://developer.salesforce.com/page/Creating_Professional_PDF_Documents_with_CSS_and_Visualforce

@FabienTaillon
Copy link

Are you using SLDS as a static resource or the one provided by the Platform ?

@SyedMoosaNazirTN
Copy link

@FabienTaillon Downloaded the SLDS ZIP file provided by Platform and stored in static resource.

@stale
Copy link

stale bot commented Jun 30, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you still need help with your issue, please comment and we will reply to you shortly. Thank you for your contributions to the Salesforce Lightning Design System.

@stale stale bot added the stale label Jun 30, 2018
@stale stale bot closed this as completed Jul 7, 2018
@wdci-dev
Copy link

Is this resolved, getting internal server error with VF page having apex:slds/ and renderAs="pdf" , any workarounds please?

@bishwambhar-sen
Copy link

Is this resolved, getting internal server error with VF page having apex:slds/ and renderAs="pdf" , any workarounds please?

We had a similar issue and we reached out to SF support. They asked us to remove the apex:slds tag. Now we are thinking of ways to use slds in our VF page. Perhaps by using static resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants