Click or drag to resize
Pdftools logo

ContentGenerator Class

Inheritance Hierarchy
SystemObject
  PdfTools.Toolbox.InternalNativeBase
    PdfTools.Toolbox.InternalNativeObject
      PdfTools.Toolbox.Pdf.ContentContentGenerator

Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.0.0+fdabb036503e9f99735634a6d4f5be875399e9f5
Syntax
C#
public class ContentGenerator : NativeObject, 
	IDisposable

The ContentGenerator type exposes the following members.

Constructors
 NameDescription
Public methodContentGenerator

Create a new content generator for appending or prepending to the content of a group.

Top
Methods
 NameDescription
Public methodAppendContentElement

Paint a content element

Public methodClipWithPath

Intersect clip path with path.

Update the current clip path by intersecting with the given path.
Public methodClipWithText

Intersect clip path with text.

Update the current clip path by intersecting with the given text.
Public methodDispose

Close the object

Release all native resources associated with the object.
Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Public methodPaintGroup

Paint a group.

Public methodPaintImage

Paint an image.

Public methodPaintImageMask

Paint an image (stencil) mask.

An image mask is a monochrome image, in which each sample is specified by a single bit. However, instead of being painted in opaque black and white, the image mask is treated as a stencil mask that is partly opaque and partly transparent. Sample values in the image do not represent black and white pixels; rather, they designate places on the content that should either be marked with the given paint or masked out (not marked at all). Areas that are masked out retain their former content.

The effect is like applying paint in the current color through a cut-out stencil, which allows the paint to reach the page in some places and masks it out in others.

Public methodPaintPath

Paint a path.

The path is first filled and then stroked The blend mode for filling and stroking must be the same.
Public methodPaintText

Paint text.

Public methodRestore

Restore the graphics state.

The most recently saved state is restored and removed from the graphics state stack. The following properties are affected:
  • The current transform matrix
  • The current clip path
Public methodSave

Save the current graphics state

The graphics state is stored on the graphics state stack. The following properties are affected:
  • The current transform matrix
  • The current clip path
Public methodTransform

Modify the current transform matrix by concatenating the specified matrix.

Top
See Also