PeachPDF

PeachPDF

PeachPdfCssContent Class

An opaque, pre-parsed stylesheet produced by ParseStyleSheet(string, bool). Pass an instance to a GeneratePdf/AddPdfPages overload’s cssData parameter to reuse the same parsed CSS across multiple renders instead of re-parsing identical stylesheet text on every call.

public class PeachPdfCssContent

Inheritance System.Object → PeachPdfCssContent

Methods  
AddStyleSheet(string) 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.