PeachPDF

PeachPDF Namespace

Classes  
HtmlRenderException Thrown when HTML/CSS parsing, layout, or painting fails while a PdfGenerator method is rendering a document. RenderErrorType identifies which pipeline phase raised it.
PdfDocumentMetadata Optional document-information overrides applied to the generated PDF’s Info dictionary via Metadata. Each property is nullable: when a property is non-null it overrides the value extracted from the HTML source (<title> and the <meta name="author|subject|keywords|generator"> tags); when it is null the HTML-extracted value is used unchanged.
PdfGenerateConfig The settings for generating PDF using PdfGenerator
PdfGenerator Renders HTML (and optionally CSS) into a PDF document entirely in-process, with no external browser or process dependency. This is the main entry point for PeachPDF: use one of the GeneratePdf overloads to create a new PeachPdfDocument, or one of the AddPdfPages overloads to append rendered pages to an existing one.
PeachPdfCssContent 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.
PeachPdfDocument A PDF document produced by PdfGenerator. Instances are created by calling one of the PdfGenerator.GeneratePdf overloads and are written out with Save(Stream).
Structs  
RuneRange An inclusive range of Unicode scalar values (codepoints), e.g. the U+0000-00FF of a CSS @font-faceunicode-range descriptor, or the coverage a font declares for a face registered via PdfGenerator’s AddFontFromStream. Both ends are inclusive - unlike System.Range, which is half-open and int/index based - and the endpoints are real System.Text.Runes, so surrogate/out-of-range values can’t be expressed by construction.
Enums  
HtmlRenderErrorType The pipeline phase a HtmlRenderException was raised from. Set on RenderErrorType.
PageOrientation Specifies the orientation of a page.
PageSize Identifies the most popular predefined page sizes.
PdfAConformance The PDF/A (ISO 19005) conformance level to target, set via PdfAConformance. Defaults to None - no PDF/A -specific work is done: no /OutputIntents, no forced XMP metadata, no PDF-version bump, no PDF/A-1 transparency rejection, and no accessible-level language/alt-text requirements.
PdfColorScheme The color scheme the renderer reports to the CSS prefers-color-scheme media feature (which drives, for example, dark-mode style variants). A static PDF has no user/OS preference, so this is chosen by the caller via PreferredColorScheme; it defaults to Light.