PeachPDF
PeachPDF.PeachPdfCssContent
PeachPdfCssContent.AddStyleSheet(string) Method
Parses an additional stylesheet and merges its rules into this content’s underlying style data. Sheets added later take precedence over earlier ones and over the base sheet this content was created from (matching the CSS cascade’s source order), so this can be called repeatedly to layer multiple user stylesheets on top of one another.
public System.Threading.Tasks.Task AddStyleSheet(string stylesheet);
Parameters
stylesheet System.String
the stylesheet source to parse and add
Returns
Remarks
@import rules inside stylesheet are not resolved (there is no
document context here), the same limitation as ParseStyleSheet(string, bool).