Table of Contents

Namespace CobaltPdf

Classes

CloudEnvironment

Provides ready-made PoolOptions presets for common cloud and container deployment targets.

CobaltCookie

Represents a browser cookie configuration used during the PDF generation process.

CobaltEngine

The main PDF renderer for CobaltPdf. Create one instance and call fluent methods to configure each render, finishing with RenderUrlAsPdfAsync(string, CancellationToken) or RenderHtmlAsPdfAsync(string, CancellationToken).

CobaltPdfServiceExtensions

Extension methods for registering CobaltPdf with the ASP.NET Core dependency injection container.

LazyLoadOptions

Configuration for the lazy-load scroll behaviour applied before PDF capture.

MarginOptions

Represents the page margins for a PDF document.

MetadataOptions

Defines the descriptive metadata to be embedded in the generated PDF document.

PdfDocument

The rendered PDF artifact. Use this to save the file or access raw binary data.

PdfDocumentTaskExtensions

Extension methods that allow PdfDocument operations to be chained directly off a Task<TResult> — i.e. off the render call itself — without an intermediate await.

PdfEncryptionOptions

Defines password protection and permission settings for the generated PDF.

PdfGenerator

Provides functionality for generating PDF documents from HTML content or URLs.

PdfOptions

Represents configuration options used when generating a PDF.

PdfRequestExtensions

Extension methods that execute a CobaltPdf.Requests.PdfRequest using a CobaltEngine instance.

PoolOptions

Configuration options for the CobaltPdf browser pool.

WaitOptions

Base class for defining a wait strategy before PDF rendering.

WatermarkOptions

Defines visual settings for a watermark injected into the generated PDF.

Interfaces

IPdfGenerator

Defines the fluent configuration and render contract for a single PDF generation operation.

IPdfGeneratorFinal

Continuation of the fluent chain after WithCustomJS has been called. Prevents adding a second custom JS block by accident.

Enums

BrowserLoggingMode

Specifies the destination modes for capturing browser-level console logs.

CssMediaType

Specifies the CSS media type to emulate during PDF rendering.

HorizontalAlignment
MarginUnit

Specifies the measurement units for margins.

VerticalAlignment
WatermarkPosition

Convenience positions for watermark placement, combining vertical and horizontal alignment.

WatermarkStyle

Predefined visual styles for text watermarks.