Table of Contents

Class PdfPatternCanvas

Namespace
iText.Kernel.Pdf.Canvas
Assembly
itext.kernel.dll

A PdfCanvas instance with an inherent tiling pattern.

public class PdfPatternCanvas : PdfCanvas
Inheritance
PdfPatternCanvas
Inherited Members

Constructors

PdfPatternCanvas(Tiling, PdfDocument)

Creates PdfPatternCanvas for a document from a provided Tiling pattern

public PdfPatternCanvas(PdfPattern.Tiling pattern, PdfDocument document)

Parameters

pattern PdfPattern.Tiling

The Tiling pattern must be colored

document PdfDocument

The document that the resulting content stream will be written to

PdfPatternCanvas(PdfStream, PdfResources, PdfDocument)

Creates PdfPatternCanvas from content stream of page, form XObject, pattern etc.

public PdfPatternCanvas(PdfStream contentStream, PdfResources resources, PdfDocument document)

Parameters

contentStream PdfStream

The content stream

resources PdfResources

The resources, a specialized dictionary that can be used by PDF instructions in the content stream

document PdfDocument

The document that the resulting content stream will be written to

Methods

SetColor(PdfColorSpace, float[], PdfPattern, bool)

public override PdfCanvas SetColor(PdfColorSpace colorSpace, float[] colorValue, PdfPattern pattern, bool fill)

Parameters

colorSpace PdfColorSpace
colorValue float[]
pattern PdfPattern
fill bool

Returns

PdfCanvas