Is there some component/api/method available that will allow me to export a CURRENT PAGE (aspx/html) to PDF while also heeding the CSS rules of the page?
I have a report I generate with 3 columns, tables and plenty of CSS, but when I export to Excel, PDF, HTML – I end up with a black and white result, that needs to then have the CSS re-applied in code which is cumbersome.
NB*. Obviously in my mind this sounds improbable given that the
component/api/method would need to interpret HTML & CSS.
Thanks
I work at Expected Behavior, and we’ve developed an API called DocRaptor that converts HTML to PDF and Excel format. We use Prince XML for PDF generation, and our output is much higher quality than similar APIs.
It sounds like your main concern is correct interpretation of HTML and CSS, and DocRaptor has extensive CSS support. We use HTTP POST requests for document generation, and DocRaptor can be used with C# (as well as many other languages)
Here’s a link to our C# coding example:
DocRaptor C# example
And a link to DocRaptor’s home page:
DocRaptor