I'm using CefSharp (v63) to convert *local* HTML-based reports to PDF for portability. Generally, this works exactly as intended. However, it seems that if the HTML references an *external* CSS stylesheet, the styles are not represented in the exported PDF file.
Note, the rendered HTML shown in my CefSharp-based app looks as expected. That is, the stylesheet info is being used there. However, once I export the document to PDF (via PrintToPdfAsync), the stylesheet info seems to be lost or no longer referenced lost.
Specifically, I notice issues in table formats (no backgrounds, no borders, incorrect padding, ...).
If I instead put the CSS styles directly within the HTML file (instead of referencing it externally) the PDF does reflect the correct styles. While I haven't looked at the core code involved here, I assumed the PDF export was driven from the already-rendered browser document (which, again, is correct), but maybe that's not the case?
Thanks for any tips or pointers.