Namespace DRIT.Pdf.Content
Classes
AxialShading
An axial (linear) shading (spec §8.7.4.5.2). Colors interpolate along a line between two endpoints.
ColorSpace
A PDF color space (spec §8.6). Color spaces define how colors are represented in a PDF content stream. This is the base class for all color space types.
Content
Abstract base for all content surfaces (spec §7.8.3). A content surface is an area that accepts drawing operations and produces a PDF content stream. PageContent and FormXObject are content surfaces.
ContentElement
Base class for all content elements returned by the content stream interpreter (Phase 4).
ContentElementCollection
The ordered collection of content elements on a page. New elements are appended at the end (painted on top). Reading back elements from an existing content stream is supported via All() and All(PdfMatrix).
ContentElementEnumerable
Enumerable wrapper returned by All(PdfMatrix). Provides a GetEnumerator() that returns a ContentElementEnumerator with a Transform property.
ContentElementEnumerator
Custom enumerator for content elements that also carries the accumulated page transform. Returned by GetEnumerator().
ContentFormat
Combined fill + stroke format for a path element.
ContentGroup
A grouping element in a content stream (spec §8.11). Allows drawing operations to be grouped together for transformation, clipping, or logical organization. This is distinct from Optional Content Groups (layers) — a content group is a structural grouping within the content stream, not a visibility layer.
ContentMark
A marked-content point or sequence boundary in a content stream (spec §14.10). Represents a BMC, BDC, MP, or EMC operator encountered during content interpretation.
ContentResource
Describes a single resource entry in a content stream's /Resources dictionary (spec §7.8.3, Table 33). Resources include fonts, images, forms, patterns, shadings, and extended graphics states.
ContentTextRun
A run of consecutive glyphs sharing the same font, size, and color from a content stream (spec §9). Enumerable into individual ContentGlyph values.
CoonsPatchMeshShading
A Coons patch mesh shading (spec §8.7.4.5.7). Each patch is defined by 12 control points (4x3 grid of vertices).
DetectedTable
A table recognized from positioned text on a page.
DetectedTableRow
One detected row in a recognized table.
DeviceCmykColorSpace
DeviceCMYK color space (spec §8.6.3). A four-component CMYK color space with cyan, magenta, yellow, black components 0-1.
DeviceGrayColorSpace
DeviceGray color space (spec §8.6.3). A single-component gray color space where 0 is black and 1 is white.
DeviceRgbColorSpace
DeviceRGB color space (spec §8.6.3). A three-component RGB color space with red, green, blue components 0-1.
ExternalObject
A reference to an external object in a content stream (spec §8.11).
External objects include Form XObjects, Image XObjects, and PostScript XObjects
referenced via the Do operator.
FillFormat
Fill properties for a path.
FontFace
Describes the face of a font (family, style, weight).
FontFaceSelectionEventArgs
Event arguments for the FontSelection event. Allows listeners to inspect or override the font face selected for rendering.
FormContent
A placed instance of a FormXObject in a content stream (spec §8.10).
The form is painted at a specific position and scale via the Do operator.
FormXObject
A Form XObject — a self-contained content stream that can be painted multiple times at different positions and scales (spec §8.10, Table 88). Form XObjects are used for watermarks, repeated graphics, and annotation appearance streams.
FormattedText
A rich-text block that can be drawn onto a page. Supports font, size, style, color, alignment and optional line-wrapping.
FormattedTextLine
A single explicitly laid-out line of text. The caller owns line breaking; the PDF library only emits the supplied segments.
FormattedTextSegment
A styled text segment used by FormattedTextLine.
FreeFormGouraudTriangleMeshShading
A free-form Gouraud-shaded triangle mesh shading (spec §8.7.4.5.5). Each triangle can have arbitrarily colored vertices, with colors interpolated across the triangle.
FunctionBasedShading
A function-based shading (spec §8.7.4.5.1). Uses a function to map domain coordinates to colors.
ImageContent
An image content element returned by the content-stream interpreter. Supports saving the decoded image to a file.
ImageData
Metadata about an image embedded in a content stream (width × height).
Accessed as imageElement.Image.
LatticeFormGouraudTriangleMeshShading
A lattice-form Gouraud-shaded triangle mesh shading (spec §8.7.4.5.6). Vertices are organized in a grid, with triangles formed by adjacent vertices.
LineDashPattern
Represents a PDF line dash pattern: an array of dash/gap lengths and a phase offset. Spec §8.4.3.6.
LineDashPatterns
Predefined dash patterns matching the GemBox.Pdf API.
MeshShading
A mesh shading base class (spec §8.7.4.5.5-8). Mesh shadings define complex gradients using triangles or patches. This is the base class for all mesh shading types.
OptionalContentCollection
Collection of optional content groups (layers) owned by a Document.
OptionalContentGroup
An optional content group (OCG) — a named layer whose visibility can be toggled in supporting PDF viewers (PDF spec §8.11). Obtain an instance via AddGroup(string).
PageContent
The drawing surface for a PDF page. Accumulates drawing operations that are serialized to a content stream on Save(Stream).
PathContent
A path content element — one or more subpaths plus formatting (fill/stroke).
Returned by AddPath().
All subpath-builder methods return this for fluent chaining.
PathSegmentCollection
An ordered collection of PathSegment values within a subpath.
Pattern
A PDF pattern (spec §8.7). Patterns are used to fill areas with repeating graphics (tiling) or gradients (shading). This is the base class for TilingPattern and ShadingPattern.
PatternColorSpace
A Pattern color space (spec §8.7). This is the base color space for all patterns.
PdfColors
A catalog of predefined PdfColor values, mirroring the
named colors available in System.Drawing.Color.
All values are RGB with channels in the range 0.0–1.0.
PdfFont
A specific font (face + size).
PdfFontFamily
Identifies a font family by name. Standard PDF names are mapped internally.
PdfFonts
Provides access to installed system fonts and font-family enumeration.
Wraps the internal SystemFontResolver.
PdfImage
A raster image that can be drawn on a PDF page. Supports JPEG (pass-through) and PNG (decoded + re-compressed with FlateDecode).
PdfMatrix
A 2D affine transformation matrix in PDF convention. Transforms point (x,y) as: x' = Ax + Cy + E, y' = Bx + Dy + F.
Operations use post-multiplication (each operation is applied AFTER the current transform), which means: Identity.Translate(tx,ty).Rotate(θ) places the drawing origin at (tx,ty) then rotates the axes by θ around that origin.
RadialShading
A radial shading (spec §8.7.4.5.3). Colors interpolate along a line between two circles.
ReadablePathContent
A path content element returned by the content-stream interpreter.
Shading
A PDF shading (spec §8.7.4). Shadings define gradients or more complex color transitions. This is the base class for all shading types.
ShadingContent
A shading painted as a content element in a content stream (spec §8.7.4). The shading fills a region using a gradient pattern defined by a shading dictionary.
ShadingPattern
A shading pattern (spec §8.7.4.3). A pattern that uses a shading as its tile content.
StrokeFormat
Stroke properties for a path.
Subpath
A subpath within a path (spec §8.5.2). A subpath is a connected sequence of path segments, optionally closed.
SubpathCollection
A collection of Subpath objects forming a complete path.
Table
A table DOM that can be rendered through DrawTable(Table, PdfPoint).
TableBorder
Border model for table and cell rendering.
TableBorderEdge
One side of a table border, including visibility, width, color, and dash pattern.
TableCell
One logical cell in a table row.
TableCellCollection
Collection of cells in one row.
TableMargin
Table margin around the rendered grid area.
TablePadding
Cell padding inside each table cell.
TableRecognitionOptions
Options used by RecognizeTables(TableRecognitionOptions?).
TableRenderOptions
Options for drawing a table starting from a specific row.
TableRenderResult
Result returned by DrawTable(Table, PdfPoint, TableRenderOptions?).
TableRow
One logical row in a table.
TableRowCollection
Ordered row collection for table construction.
TableThickness
Shared thickness model used for table margins and paddings.
TensorProductPatchMeshShading
A tensor-product patch mesh shading (spec §8.7.4.5.8). Similar to Coons patch mesh but with different interpolation.
Text
High-level text search and editing API for a PDF page.
Provides Find, Replace, Highlight, and Redact
operations on the text content of a page.
TextContent
A text content element returned by the content-stream interpreter. Represents a single text-showing operator (Tj / TJ / ' / ").
TextElementFormat
Combined text-element format: text properties (font) plus fill color.
Accessed as textElement.Format.
TextFormat
Text-specific formatting properties (font).
TextOptions
Options controlling text extraction from a PDF page.
TilingPattern
A PDF tiling pattern (spec §8.7.3). A tiling pattern fills an area with repeated instances of a content stream.
VisualContentElement
Base class for visual content elements — elements that produce visible output on the page (text, images, paths, shadings, form XObjects, and content groups). Extends ContentElement with a transform and optional clip.
Structs
ContentGlyph
A single glyph (character) extracted from a content stream, with its position, font, and size (spec §9).
GrayCalibration
Calibration values for CalGray color space (spec §8.6.4).
LabCalibration
Calibration values for Lab color space (spec §8.6.4).
MeshEdge
A shared edge in a lattice mesh (spec §8.7.4.5.6). Defines connectivity between vertices in a lattice-form mesh.
MeshPatch
A Coons patch or tensor-product patch for mesh shadings (spec §8.7.4.5.7-8).
MeshTriangle
A mesh triangle defined by three vertices (spec §8.7.4.5.5). Used by free-form and lattice-form Gouraud-shaded triangle mesh shadings.
MeshVertex
A mesh vertex with position and color (spec §8.7.4.5.5). Used by Gouraud-shaded triangle mesh shadings.
PathSegment
A single segment of a path subpath (spec §8.5.2). Contains a start point, optional control points, and an end point.
PdfColor
A PDF color (spec §8.6). Can represent device colors (Gray, RGB, CMYK) or colors from custom color spaces.
Quadrilateral
A quadrilateral defined by four points in user-space coordinates (spec §8.4.4). Used by text-markup annotations (/QuadPoints) and text search/highlight results. Points are ordered: P1 (bottom-left), P2 (bottom-right), P3 (top-right), P4 (top-left).
RgbCalibration
Calibration values for CalRgb color space (spec §8.6.4).
RgbMatrix
Matrix for CalRgb color space (spec §8.6.4). The 3×3 transformation matrix for RGB components.
ShadingColorStop
A color stop for a gradient shading, consisting of a position and color.
TextDecoration
Text decoration (underline or strikethrough) applied to text content.
TextMatch
A single text search match result with position and length.
TextWhitespace
A whitespace token encountered during text extraction (spec §9.2, Table 91). Represents a single whitespace character or a run of whitespace with its position.
Enums
ColorSpaceFamily
The family of a PDF color space (spec §8.6, Table 66). Each family represents a different color space model.
ContentElementType
The type of a content element as returned by the content stream interpreter.
ContentMarkType
The type of marked-content operator in a content stream (spec §14.10, Table 330).
DeviceIndependentFormat
The level of device independence for color information in a content stream (spec §8.6, color spaces). Determines whether colors are expressed in device-dependent or device-independent terms.
FillRule
Fill rule for path painting (spec §8.5.3.3).
FontEmbeddingRights
Font embedding and subsetting rights from the OpenType OS/2 table fsType field (spec §9.9, Table 123). These flags control whether a font can be embedded in a PDF document and what level of modification is allowed.
PathSegmentType
The kind of path segment (spec §8.5.2, path construction operators).
PatternType
The type of a PDF pattern (spec §8.7). Patterns are used to fill areas with repeating graphics (tiling) or gradients (shading).
PdfFontStretch
Font stretch (width class) from the OpenType OS/2 table usWidthClass field (spec §9.9, Table 123). Values 1–9 map to the CSS font-stretch property.
PdfFontStyle
Font style flags (can be combined).
PdfFontWeight
Font weight.
PdfLineCap
Line cap style (spec §8.4.3.3).
PdfLineJoin
Line join style (spec §8.4.3.4).
PdfTextFormattingMode
Glyph positioning mode for text rendering (spec §9.4.4). Controls whether glyph positions are computed for display or for world-space measurement.
PdfVerticalAlignment
Vertical alignment used by table rows and cells.
ShadingType
The type of a PDF shading (spec §8.7.4, Table 89).
TableColumnAdjustment
Column width strategy for table rendering.
TextAlignment
Horizontal text alignment within a text block.
TextDecorationStyle
Text decoration style (spec §9.3.4 — text rendering mode 1 = stroke, combined with underline and strikethrough conventions).
TextOrder
The order in which text is extracted from a PDF page (spec §9.10.2).
TextWhitespaceHandling
Whitespace handling options for text extraction (spec §9.10.2).