You need to sign in to do that
Don't have an account?
Michael M
Any ideas for how to keep lightningstylesheets and renderas pdf?
Hello, I am well aware that there is an issue with using SLDS together with renderas=pdf in a VF page. However I basically need to make this work. Does anyone have an idea for a workaround for how to make this work? I am open to any suggestions!
As you know this is an open Idea today that everyone is waiting for to be delivered
For a workaround, I recommend looking at the following resources
https://salesforce.stackexchange.com/questions/205065/how-to-generate-view-pdf-using-lightning-components/205067
http://pdfmake.org/
https://github.com/bpampuch/pdfmake
https://medium.com/@ToAnshulVerma/salesforce-lightning-generate-pdf-from-lightning-components-with-in-memory-data-cd5dffe0fe25
https://github.com/kumarrk21/PDFViewer
Let me know if this helps
Anudeep
All Answers
As you know this is an open Idea today that everyone is waiting for to be delivered
For a workaround, I recommend looking at the following resources
https://salesforce.stackexchange.com/questions/205065/how-to-generate-view-pdf-using-lightning-components/205067
http://pdfmake.org/
https://github.com/bpampuch/pdfmake
https://medium.com/@ToAnshulVerma/salesforce-lightning-generate-pdf-from-lightning-components-with-in-memory-data-cd5dffe0fe25
https://github.com/kumarrk21/PDFViewer
Let me know if this helps
Anudeep
Thank you for those resources. the PDFViewer package sounds like it could be a good fit but I could not seem to get it to work. I found something that sounds good- essentially a way to use javascript instead of renderas PDF. The link is here: https://www.eternussolutions.com/2016/08/09/generate-pdf-visualforce-pages-going-beyond-renderas/#comment-363
However it doesn't seem to be working either. Do you think I could send you my code here and based on that website see if I'm doing anything wrong?