PdfGraphics Object

Overview

PdfGraphics represents a self-contained graphics object (referred to as a Form XObject by PDF specifications). For more information on graphics objects, see Section 5.3 - PdfGraphics Object, Section 9.6 - Drawing Other Documents' Pages, and Chapter 19 - Transparency.

Member List

Properties


PdfRect BBox (Read-only)
Returns an instance of the PdfRect object containing this graphics' bounding box. This property was introduced in Version 3.5.

PdfCanvas Canvas (Read-only)
Returns an instance of the PdfCanvas object associated with this graphics object.

bool IsPattern (Read-only)
Returns True if this graphics object represents a pattern, False otherwise. This property was introduced in Version 3.5.

Methods


void SetGroup(PdfGState Group)

Associates a transparency group with this graphics object. Group is an instance of the PdfGState object representing a transparency group. This method was introduced in Version 3.1.

For more information, see Section 19.3 - Transparency Groups.


void SetGState(PdfGState Group)

Associates a graphic state object with the pattern represented by this graphics object. This method can only be called if this object represents a pattern (IsPattern returns True). This method was introduced in Version 3.5.

For more information, see Section 16.5 - Patterns and Shadings.