Table of Contents

Namespace MiPdf.Graphics

Classes

PdfCanvas

Writes page or XObject content: paths, colors, text, images. Coordinates are in PDF user space (points, origin at the bottom-left of the page). The content is stored when the canvas is disposed (or Flush() is called).

PdfFormXObject

A form XObject: a reusable piece of content with its own coordinate system and resources (used for templates, stamps and annotation/field appearances).

Structs

Matrix

An affine transformation matrix [a b c d e f] as used by PDF (row vector convention).

PdfColor

A device color (gray, RGB or CMYK). Components are stored in the range 0..1. Gray(double), Rgb(double, double, double) and Cmyk(double, double, double, double) take components in that range; the From... methods convert other notations: FromRgb(byte, byte, byte) 8-bit values (0..255) and FromHex(string) hex strings such as "#1F4E79". The named colors follow the CSS color names.

Interfaces

IResourceContainer

Something that owns a resource dictionary: a page or a form XObject.

Enums

LineCap

Shape of the ends of open stroked lines (PDF line cap style, operator J).

LineJoin

Shape of the corners of stroked paths (PDF line join style, operator j).

PdfColorSpace

Device color space of a PdfColor.

TextAlignment

Horizontal alignment of text.

TextRenderingMode

How glyphs are painted (PDF text rendering mode, operator Tr).