PeachPDF

PeachPDF

PdfLengthUnit Enum

The subset of CSS <length>/<percentage> units meaningful for a declaratively-built print document (see PdfLength). Viewport- and container-query-relative units (vw, cqw, etc.) are deliberately not exposed here - they resolve against a browser viewport/query container, neither of which a declarative document-building call has one of.

public enum PdfLengthUnit

Fields

Point 0

1/72 inch - PeachPDF’s own internal layout unit.

Pixel 1

CSS pixels, 1px = 1/96in = 0.75pt.

Inch 2

Inches.

Centimeter 3

Centimeters.

Millimeter 4

Millimeters.

Pica 5

Picas (1pc = 12pt).

Percent 6

A percentage of whatever basis the property being set resolves percentages against.

Em 7

Relative to the current element’s own font size.

Rem 8

Relative to the document root’s font size.