pdftoolkit/html-to-pdf · version 0.4.0 · source 2adb5be

Install with Composer · Packagist ↗

Read the package guide →

classOptional · pdftoolkit/html-to-pdf

ConversionLimits

PDF\HtmlToPdf

classOptional · pdftoolkit/html-to-pdf

ConversionOptions

PDF\HtmlToPdf

classOptional · pdftoolkit/html-to-pdf

ConversionResult

PDF\HtmlToPdf

Conversion bytes and diagnostics belong to one completed document.

classOptional · pdftoolkit/html-to-pdf

Converter

PDF\HtmlToPdf

A fresh pipeline per conversion: no retained DOM, font embedding or layout state.

classOptional · pdftoolkit/html-to-pdf

BorderComputer

PDF\HtmlToPdf\Css

Converts resolved longhands; cascade/global keywords are handled by StyleComputer.

classOptional · pdftoolkit/html-to-pdf

BorderDeclarations

PDF\HtmlToPdf\Css

Atomic shorthand expansion: no longhand escapes when any component is invalid.

classOptional · pdftoolkit/html-to-pdf

Cascade

PDF\HtmlToPdf\Css

Author cascade for a single DOM; no global selector cache or resource retrieval.

classOptional · pdftoolkit/html-to-pdf

CascadedValue

PDF\HtmlToPdf\Css

classOptional · pdftoolkit/html-to-pdf

ColorFormatter

PDF\HtmlToPdf\Css

Serialize computed color channels without locale dependence or CSS exponent syntax.

classOptional · pdftoolkit/html-to-pdf

DeclarationSource

PDF\HtmlToPdf\Css

Retrieves original values before a third-party AST normalizes numbers or colors.

classOptional · pdftoolkit/html-to-pdf

Declarations

PDF\HtmlToPdf\Css

Validate and expand one complete declaration before it can participate in the cascade.

classOptional · pdftoolkit/html-to-pdf

FontDeclarations

PDF\HtmlToPdf\Css

Expand every component together; unsupported values invalidate the whole shorthand.

classOptional · pdftoolkit/html-to-pdf

FontFamilyParser

PDF\HtmlToPdf\Css

classOptional · pdftoolkit/html-to-pdf

FontValueToken

PDF\HtmlToPdf\Css

classOptional · pdftoolkit/html-to-pdf

FontValueTokenizer

PDF\HtmlToPdf\Css

Small bounded lexer for font lists and the CSS1 font shorthand.

classOptional · pdftoolkit/html-to-pdf

ParserProjection

PDF\HtmlToPdf\Css

Adapts parser limitations without changing the original declaration lexemes or offsets.

classOptional · pdftoolkit/html-to-pdf

SelectorPolicy

PDF\HtmlToPdf\Css

Checks parsed nodes, so escaped punctuation is never mistaken for a pseudo-class.

classOptional · pdftoolkit/html-to-pdf

SpecifiedDeclarationValidator

PDF\HtmlToPdf\Css

Validate the supported specified grammar without substituting a parent or layout context.

classOptional · pdftoolkit/html-to-pdf

StyleComputer

PDF\HtmlToPdf\Css

classOptional · pdftoolkit/html-to-pdf

StyleState

PDF\HtmlToPdf\Css

Preserve a unitless line-height through inheritance until child font sizing.

classOptional · pdftoolkit/html-to-pdf

TextValues

PDF\HtmlToPdf\Css

Text properties share signed lengths without changing non-negative box dimensions.

classOptional · pdftoolkit/html-to-pdf

Values

PDF\HtmlToPdf\Css

Narrow, explicit supported CSS value grammars.

classOptional · pdftoolkit/html-to-pdf

Diagnostic

PDF\HtmlToPdf

classOptional · pdftoolkit/html-to-pdf

Diagnostics

PDF\HtmlToPdf

classOptional · pdftoolkit/html-to-pdf

BorderBox

PDF\HtmlToPdf\Drawing

A slice of one border box. Patterns and joins use the unsliced geometry.

interfaceOptional · pdftoolkit/html-to-pdf

Command

PDF\HtmlToPdf\Drawing

classOptional · pdftoolkit/html-to-pdf

Image

PDF\HtmlToPdf\Drawing

classOptional · pdftoolkit/html-to-pdf

RadioButton

PDF\HtmlToPdf\Drawing

Explicit static snapshot; this command never creates an interactive form field.

classOptional · pdftoolkit/html-to-pdf

Rectangle

PDF\HtmlToPdf\Drawing

classOptional · pdftoolkit/html-to-pdf

Text

PDF\HtmlToPdf\Drawing

x and baseline y are in points from the page's top-left.

classOptional · pdftoolkit/html-to-pdf

ConversionException

PDF\HtmlToPdf\Exception

classOptional · pdftoolkit/html-to-pdf

LimitExceeded

PDF\HtmlToPdf\Exception

classOptional · pdftoolkit/html-to-pdf

UnsupportedFeature

PDF\HtmlToPdf\Exception

classOptional · pdftoolkit/html-to-pdf

FontCatalog

PDF\HtmlToPdf\Font

Caller-supplied family and generic bindings only; no filesystem or network lookup.

classOptional · pdftoolkit/html-to-pdf

FontFace

PDF\HtmlToPdf\Font

A caller-supplied, embeddable static TrueType face. No font discovery or file access.

classOptional · pdftoolkit/html-to-pdf

FontLimits

PDF\HtmlToPdf\Font

Per-font parsing and per-run shaping budgets; the converter also limits total work.

classOptional · pdftoolkit/html-to-pdf

FontMetrics

PDF\HtmlToPdf\Font

Distances in PDF points; descent is the positive distance below the baseline.

classOptional · pdftoolkit/html-to-pdf

FontRun

PDF\HtmlToPdf\Font

One shaped source run, with the exact positions later consumed by the PDF painter.

classOptional · pdftoolkit/html-to-pdf

FontSet

PDF\HtmlToPdf\Font

Explicit variants, with no operating-system font lookup or synthetic bold/italic.

enumOptional · pdftoolkit/html-to-pdf

FontStyle

PDF\HtmlToPdf\Font

classOptional · pdftoolkit/html-to-pdf

GlyphSpacing

PDF\HtmlToPdf\Font

Add spacing to complete source graphemes, keeping attached marks in place.

classOptional · pdftoolkit/html-to-pdf

LayoutPreparation

PDF\HtmlToPdf\Font

Face-owned lazy preparation: unused variants never allocate layout tables.

classOptional · pdftoolkit/html-to-pdf

PreparedLayout

PDF\HtmlToPdf\Font

Immutable, face-scoped tables; shaping engines allocate fresh budgets per run.

enumOptional · pdftoolkit/html-to-pdf

FormControls

PDF\HtmlToPdf

Form rendering is opt-in and never creates submission actions or PDF fields.

classOptional · pdftoolkit/html-to-pdf

HtmlSource

PDF\HtmlToPdf

classOptional · pdftoolkit/html-to-pdf

CommandTranslation

PDF\HtmlToPdf\Layout

classOptional · pdftoolkit/html-to-pdf

FloatContext

PDF\HtmlToPdf\Layout

Document-local exclusions; a floated box receives a fresh nested context.

classOptional · pdftoolkit/html-to-pdf

FloatPlacement

PDF\HtmlToPdf\Layout

The margin rectangle of one float in its formatting context.

classOptional · pdftoolkit/html-to-pdf

FloatWorkBudget

PDF\HtmlToPdf\Layout

One cumulative budget shared by every nested float context of a document.

classOptional · pdftoolkit/html-to-pdf

FlowAssembly

PDF\HtmlToPdf\Layout

Preserve paint overflow while combining a bounded formatting context.

classOptional · pdftoolkit/html-to-pdf

FlowBuilder

PDF\HtmlToPdf\Layout

Builds bounded, page-independent flow slices. No shared caches or external resources.

classOptional · pdftoolkit/html-to-pdf

FlowItem

PDF\HtmlToPdf\Layout

One indivisible vertical slice, in document coordinates relative to its top.

classOptional · pdftoolkit/html-to-pdf

InlineBlockSplitter

PDF\HtmlToPdf\Layout

Split inline ancestors around block descendants without discarding text or inherited styles.

classOptional · pdftoolkit/html-to-pdf

InlineFormatter

PDF\HtmlToPdf\Layout

Horizontal inline flow, measured with exactly the font shaper used by serialization.

classOptional · pdftoolkit/html-to-pdf

InlinePiece

PDF\HtmlToPdf\Layout

classOptional · pdftoolkit/html-to-pdf

LayoutEngine

PDF\HtmlToPdf\Layout

Stateless entry point. Every run receives fresh shaping, structure and pagination state.

classOptional · pdftoolkit/html-to-pdf

LayoutPage

PDF\HtmlToPdf\Layout

classOptional · pdftoolkit/html-to-pdf

LineExclusions

PDF\HtmlToPdf\Layout

A block's horizontal bounds viewed through its shared float context.

classOptional · pdftoolkit/html-to-pdf

LineSpace

PDF\HtmlToPdf\Layout

Available horizontal interval at a particular vertical position.

classOptional · pdftoolkit/html-to-pdf

ListCounter

PDF\HtmlToPdf\Layout

Document-local integer numbering; an exhausted counter never becomes a float.

classOptional · pdftoolkit/html-to-pdf

MarginCollapser

PDF\HtmlToPdf\Layout

Positive CSS adjoining margins form one maximum, including through empty blocks.

classOptional · pdftoolkit/html-to-pdf

PageSettings

PDF\HtmlToPdf\Layout

classOptional · pdftoolkit/html-to-pdf

PagedDocument

PDF\HtmlToPdf\Layout

classOptional · pdftoolkit/html-to-pdf

Paginator

PDF\HtmlToPdf\Layout

Pagination operates on indivisible lines/rows and always consumes a slice or fails.

classOptional · pdftoolkit/html-to-pdf

SemanticTree

PDF\HtmlToPdf\Layout

A new tree is allocated for each document; source identifiers never become PDF names.

classOptional · pdftoolkit/html-to-pdf

HtmlDocument

PDF\HtmlToPdf\Model

classOptional · pdftoolkit/html-to-pdf

Node

PDF\HtmlToPdf\Model

classOptional · pdftoolkit/html-to-pdf

SemanticNode

PDF\HtmlToPdf\Model

classOptional · pdftoolkit/html-to-pdf

BoundedTreeBuilder

PDF\HtmlToPdf\Parsing

Limits are enforced as tokens arrive, before allocating the corresponding DOM nodes.

classOptional · pdftoolkit/html-to-pdf

HtmlCompiler

PDF\HtmlToPdf\Parsing

Stateless facade: each invocation owns its DOM, cascade, budgets and node identities.

classOptional · pdftoolkit/html-to-pdf

HtmlDoctypeProjection

PDF\HtmlToPdf\Parsing

Adapt recognized standards-mode HTML4 metadata to the HTML5 parser's doctype grammar.

classOptional · pdftoolkit/html-to-pdf

LinkTarget

PDF\HtmlToPdf\Parsing

Resolve an external annotation destination, without reading any referenced resource.

classOptional · pdftoolkit/html-to-pdf

ParseBudget

PDF\HtmlToPdf\Parsing

Cumulative work accounting owned by one conversion.

classOptional · pdftoolkit/html-to-pdf

BorderPainter

PDF\HtmlToPdf\Rendering

Constant operator work per side, independent of border length or dash count.

classOptional · pdftoolkit/html-to-pdf

Bounds

PDF\HtmlToPdf\Rendering

An enclosing rectangle in bottom-left PDF page coordinates.

classOptional · pdftoolkit/html-to-pdf

EmbeddedFont

PDF\HtmlToPdf\Rendering

Collect the document's exact glyph/text pairs before allocating PDF character codes.

classOptional · pdftoolkit/html-to-pdf

FontResources

PDF\HtmlToPdf\Rendering

classOptional · pdftoolkit/html-to-pdf

ImageResources

PDF\HtmlToPdf\Rendering

classOptional · pdftoolkit/html-to-pdf

PagePainter

PDF\HtmlToPdf\Rendering

Converts one page's top-left layout coordinates into PDF operators and explicit associations.

classOptional · pdftoolkit/html-to-pdf

RadioButtonPainter

PDF\HtmlToPdf\Rendering

Fixed vector appearance for the explicitly requested static form snapshot.

classOptional · pdftoolkit/html-to-pdf

RenderBudget

PDF\HtmlToPdf\Rendering

Shared cumulative accounting for one render, never retained by the renderer.

classOptional · pdftoolkit/html-to-pdf

Renderer

PDF\HtmlToPdf\Rendering

Stateless facade: each render owns its fonts, resources, parent keys and structure graph.

classOptional · pdftoolkit/html-to-pdf

SemanticTree

PDF\HtmlToPdf\Rendering

Preserves semantic order independently of page order and paint order.

classOptional · pdftoolkit/html-to-pdf

TextBounds

PDF\HtmlToPdf\Rendering

classOptional · pdftoolkit/html-to-pdf

CatalogUri

PDF\HtmlToPdf\Resource

Pure reference resolution: the result is only a key into an explicit catalog.

classOptional · pdftoolkit/html-to-pdf

ImageAsset

PDF\HtmlToPdf\Resource

classOptional · pdftoolkit/html-to-pdf

ResourceBudget

PDF\HtmlToPdf\Resource

Counts the whole explicitly supplied catalog, including unused resources.

classOptional · pdftoolkit/html-to-pdf

ResourceCatalog

PDF\HtmlToPdf\Resource

classOptional · pdftoolkit/html-to-pdf

BorderSide

PDF\HtmlToPdf\Style

Width and style stay independent, including zero-width and transparent borders.

enumOptional · pdftoolkit/html-to-pdf

BorderStyle

PDF\HtmlToPdf\Style

classOptional · pdftoolkit/html-to-pdf

Borders

PDF\HtmlToPdf\Style

classOptional · pdftoolkit/html-to-pdf

Color

PDF\HtmlToPdf\Style

classOptional · pdftoolkit/html-to-pdf

ComputedStyle

PDF\HtmlToPdf\Style

classOptional · pdftoolkit/html-to-pdf

Edges

PDF\HtmlToPdf\Style

classOptional · pdftoolkit/html-to-pdf

FontFamilyList

PDF\HtmlToPdf\Style

An empty list selects the caller's original default FontSet.

classOptional · pdftoolkit/html-to-pdf

FontFamilyName

PDF\HtmlToPdf\Style

Quoted family names remain distinct from the five generic CSS1 keywords.

classOptional · pdftoolkit/html-to-pdf

Length

PDF\HtmlToPdf\Style

classOptional · pdftoolkit/html-to-pdf

RadioSnapshotStyle

PDF\HtmlToPdf\Style

A static radio glyph has an explicit, deliberately narrow CSS geometry profile.

classOptional · pdftoolkit/html-to-pdf

TextIndent

PDF\HtmlToPdf\Style

Signed first-line offset, with percentages retained until the containing width is known.

classOptional · pdftoolkit/html-to-pdf

TextSpacing

PDF\HtmlToPdf\Style

Computed text spacing in points; null preserves the CSS normal keyword.

enumOptional · pdftoolkit/html-to-pdf

UnsupportedPolicy

PDF\HtmlToPdf