In Our Application , We are getting a formatted Html string from a external library(Bryntnum - provides gantt chart features).
The Formatted Html is returned in a string format.
Our business need is to convert this html into vf page and render it as a pdf. When I just use the html string and use it in vf page all the css is loaded correctly.
Image ( apex page which is not rendered as pdf)
Now if i try to render the same vf page as pdf it does not load any css.
This is the original html string which is coming from a third party library. It would be really helpful if someone can help me on how i can get pdf to have css.
Steps to get the result. Open Developer Console in Salesforce. Create a dummy vf page. and Copy the below Html text which is inside the text file https://docs.google.com/document/d/1BV98W5ZQ84khhsNuRgCyItsnvKKSKcoRVjFe2GMbsE4/edit