iText 5

PdfContentByte (1)

PdfContentByte Public class

Diagram

flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.text.pdf iTextSharp.text.pdf.PdfContentByte[[PdfContentByte]] end

Members

Properties

Public properties
Internal properties

Type

Name

Methods

PageResources

PageResources

get

int

Size

get

Protected properties
Protected internal properties

Type

Name

Methods

bool

InText

get

Methods

Public methods

Returns

Name

void

Add

(

PdfContentByte

other)

void

AddAnnotation

(

PdfAnnotation

annot, bool applyCTM)

PdfName

AddFormXObj

(...)

void

AddImage

(...)

void

AddOutline

(

PdfOutline

outline, string name)

void

AddPSXObject

(

PdfPSXObject

psobject)

void

AddTemplate

(...)

void

Arc

(...)

void

BeginLayer

(

IPdfOCG

layer)

void

BeginMarkedContentSequence

(...)

void

BeginText

()

void

Circle

(...)

void

Clip

()

void

CloseMCBlock

(

IAccessibleElement

element)

void

ClosePath

()

void

ClosePathEoFillStroke

()

void

ClosePathFillStroke

()

void

ClosePathStroke

()

void

ConcatCTM

(...)

PdfAppearance

CreateAppearance

(float width, float height)

PdfPatternPainter

CreatePattern

(...)

PdfTemplate

CreateTemplate

(float width, float height)

void

CurveFromTo

(...)

void

CurveTo

(...)

void

DrawButton

(...)

void

DrawRadioField

(...)

void

DrawTextField

(...)

void

Ellipse

(...)

void

EndLayer

()

void

EndMarkedContentSequence

()

void

EndText

()

void

EoClip

()

void

EoFill

()

void

EoFillStroke

()

void

Fill

()

void

FillStroke

()

PdfContentByte

GetDuplicate

(bool inheritGraphicState)

float

GetEffectiveStringWidth

(string text, bool kerned)

void

InheritGraphicState

(

PdfContentByte

parentCanvas)

bool

IsTagged

()

void

LineTo

(...)

bool

LocalDestination

(string name,

PdfDestination

destination)

void

LocalGoto

(string name, float llx, float lly, float urx, float ury)

void

MoveText

(float x, float y)

void

MoveTextWithLeading

(float x, float y)

void

MoveTo

(...)

void

NewPath

()

void

NewlineShowText

(...)

void

NewlineText

()

void

OpenMCBlock

(

IAccessibleElement

element)

void

PaintShading

(...)

void

Rectangle

(...)

void

RemoteGoto

(...)

void

Reset

(...)

void

ResetCMYKColorFill

()

void

ResetCMYKColorStroke

()

void

ResetGrayFill

()

void

ResetGrayStroke

()

void

ResetRGBColorFill

()

void

ResetRGBColorStroke

()

void

RestoreState

()

void

RoundRectangle

(...)

void

SanityCheck

()

void

SaveState

()

void

SetAction

(

PdfAction

action, float llx, float lly, float urx, float ury)

void

SetCMYKColorFill

(int cyan, int magenta, int yellow, int black)

void

SetCMYKColorFillF

(float cyan, float magenta, float yellow, float black)

void

SetCMYKColorStroke

(int cyan, int magenta, int yellow, int black)

void

SetCMYKColorStrokeF

(float cyan, float magenta, float yellow, float black)

void

SetCharacterSpacing

(float value)

void

SetColorFill

(...)

void

SetColorStroke

(...)

void

SetDefaultColorspace

(

PdfName

name,

PdfObject

obj)

void

SetFlatness

(...)

void

SetFontAndSize

(

BaseFont

bf, float size)

void

SetGState

(

PdfGState

gstate)

void

SetGrayFill

(float value)

void

SetGrayStroke

(float value)

void

SetHorizontalScaling

(float value)

void

SetLeading

(float v)

void

SetLineCap

(int value)

void

SetLineDash

(...)

void

SetLineJoin

(int value)

void

SetLineWidth

(...)

void

SetLiteral

(...)

void

SetMiterLimit

(...)

void

SetPatternFill

(...)

void

SetPatternStroke

(...)

void

SetRGBColorFill

(int red, int green, int blue)

void

SetRGBColorFillF

(float red, float green, float blue)

void

SetRGBColorStroke

(int red, int green, int blue)

void

SetRGBColorStrokeF

(float red, float green, float blue)

void

SetRenderingIntent

(

PdfName

ri)

void

SetShadingFill

(

PdfShadingPattern

shading)

void

SetShadingStroke

(

PdfShadingPattern

shading)

void

SetTextMatrix

(...)

void

SetTextRenderingMode

(int value)

void

SetTextRise

(...)

void

SetWordSpacing

(float value)

void

ShowText

(...)

void

ShowTextAligned

(int alignment, string text, float x, float y, float rotation)

void

ShowTextAlignedKerned

(int alignment, string text, float x, float y, float rotation)

void

ShowTextGid

(string gids)

void

ShowTextKerned

(string text)

void

Stroke

()

byte``[]

ToPdf

(

PdfWriter

writer)

string

ToString

()

void

Transform

(...)

void

VariableRectangle

(

Rectangle

rect)

Protected internal methods

Returns

Name

void

AddImage

(

Image

image, double a, double b, double c, double d, double e, double f, bool inlineImage, bool isMCBlockOpened)

void

BeginText

(bool restoreTM)

Internal methods

Returns

Name

void

AddAnnotation

(

PdfAnnotation

annot)

void

AddTemplateReference

(...)

void

CheckNoPattern

(

PdfTemplate

t)

PdfAppearance

CreateAppearance

(float width, float height,

PdfName

forcedName)

PdfTemplate

CreateTemplate

(float width, float height,

PdfName

forcedName)

int

GetMcDepth

()

IList<

IAccessibleElement

>

GetMcElements

()

int

GetSize

(bool includeMarkedContentSize)

void

OutputColorNumbers

(

BaseColor

color, float tint)

void

RestoreMCBlocks

(IList<

IAccessibleElement

> mcElements)

IList<

IAccessibleElement

>

SaveMCBlocks

()

void

SetMcDepth

(int value)

void

SetMcElements

(IList<

IAccessibleElement

> value)

void

UpdateTx

(string text, float Tj)

Protected methods

Returns

Name

void

CheckState

()

void

CheckWriter

()

Public Static methods

Returns

Name

List<double``[]>

BezierArc

(...)

PdfTextArray

GetKernArray

(string text,

BaseFont

font)

Details

Nested types

Classes
  • GraphicState

Constructors

PdfContentByte

Source code

public PdfContentByte(PdfWriter wr)

Arguments

Type

Name

Description

PdfWriter

wr

Methods

ToString

Source code

public override string ToString()

IsTagged

Source code

public virtual bool IsTagged()

ToPdf

Source code

public virtual byte ToPdf(PdfWriter writer)

Arguments

Type

Name

Description

PdfWriter

writer

Add

Source code

public virtual void Add(PdfContentByte other)

Arguments

Type

Name

Description

PdfContentByte

other

SetLeading

Source code

public virtual void SetLeading(float v)

Arguments

Type

Name

Description

float

v

SetFlatness [1/2]

Source code

public virtual void SetFlatness(float value)

Arguments

Type

Name

Description

float

value

SetFlatness [2/2]

Source code

public virtual void SetFlatness(double value)

Arguments

Type

Name

Description

double

value

SetLineCap

Source code

public virtual void SetLineCap(int value)

Arguments

Type

Name

Description

int

value

SetRenderingIntent

Source code

public virtual void SetRenderingIntent(PdfName ri)

Arguments

Type

Name

Description

PdfName

ri

SetLineDash [1/8]

Source code

public virtual void SetLineDash(float value)

Arguments

Type

Name

Description

float

value

SetLineDash [2/8]

Source code

public virtual void SetLineDash(double value)

Arguments

Type

Name

Description

double

value

SetLineDash [3/8]

Source code

public virtual void SetLineDash(float unitsOn, float phase)

Arguments

Type

Name

Description

float

unitsOn

float

phase

SetLineDash [4/8]

Source code

public virtual void SetLineDash(double unitsOn, double phase)

Arguments

Type

Name

Description

double

unitsOn

double

phase

SetLineDash [5/8]

Source code

public virtual void SetLineDash(float unitsOn, float unitsOff, float phase)

Arguments

Type

Name

Description

float

unitsOn

float

unitsOff

float

phase

SetLineDash [6/8]

Source code

public virtual void SetLineDash(double unitsOn, double unitsOff, double phase)

Arguments

Type

Name

Description

double

unitsOn

double

unitsOff

double

phase

SetLineDash [7/8]

Source code

public void SetLineDash(float[] array, float phase)

Arguments

Type

Name

Description

float``[]

array

float

phase

SetLineDash [8/8]

Source code

public void SetLineDash(double[] array, double phase)

Arguments

Type

Name

Description

double``[]

array

double

phase

SetLineJoin

Source code

public virtual void SetLineJoin(int value)

Arguments

Type

Name

Description

int

value

SetLineWidth [1/2]

Source code

public virtual void SetLineWidth(float value)

Arguments

Type

Name

Description

float

value

SetLineWidth [2/2]

Source code

public virtual void SetLineWidth(double value)

Arguments

Type

Name

Description

double

value

SetMiterLimit [1/2]

Source code

public virtual void SetMiterLimit(float value)

Arguments

Type

Name

Description

float

value

SetMiterLimit [2/2]

Source code

public virtual void SetMiterLimit(double value)

Arguments

Type

Name

Description

double

value

Clip

Source code

public virtual void Clip()

EoClip

Source code

public virtual void EoClip()

SetGrayFill

Source code

public virtual void SetGrayFill(float value)

Arguments

Type

Name

Description

float

value

ResetGrayFill

Source code

public virtual void ResetGrayFill()

SetGrayStroke

Source code

public virtual void SetGrayStroke(float value)

Arguments

Type

Name

Description

float

value

ResetGrayStroke

Source code

public virtual void ResetGrayStroke()

SetRGBColorFillF

Source code

public virtual void SetRGBColorFillF(float red, float green, float blue)

Arguments

Type

Name

Description

float

red

float

green

float

blue

ResetRGBColorFill

Source code

public virtual void ResetRGBColorFill()

SetRGBColorStrokeF

Source code

public virtual void SetRGBColorStrokeF(float red, float green, float blue)

Arguments

Type

Name

Description

float

red

float

green

float

blue

ResetRGBColorStroke

Source code

public virtual void ResetRGBColorStroke()

SetCMYKColorFillF

Source code

public virtual void SetCMYKColorFillF(float cyan, float magenta, float yellow, float black)

Arguments

Type

Name

Description

float

cyan

float

magenta

float

yellow

float

black

ResetCMYKColorFill

Source code

public virtual void ResetCMYKColorFill()

SetCMYKColorStrokeF

Source code

public virtual void SetCMYKColorStrokeF(float cyan, float magenta, float yellow, float black)

Arguments

Type

Name

Description

float

cyan

float

magenta

float

yellow

float

black

ResetCMYKColorStroke

Source code

public virtual void ResetCMYKColorStroke()

MoveTo [1/2]

Source code

public virtual void MoveTo(float x, float y)

Arguments

Type

Name

Description

float

x

float

y

MoveTo [2/2]

Source code

public virtual void MoveTo(double x, double y)

Arguments

Type

Name

Description

double

x

double

y

LineTo [1/2]

Source code

public virtual void LineTo(float x, float y)

Arguments

Type

Name

Description

float

x

float

y

LineTo [2/2]

Source code

public virtual void LineTo(double x, double y)

Arguments

Type

Name

Description

double

x

double

y

CurveTo [1/4]

Source code

public virtual void CurveTo(float x1, float y1, float x2, float y2, float x3, float y3)

Arguments

Type

Name

Description

float

x1

float

y1

float

x2

float

y2

float

x3

float

y3

CurveTo [2/4]

Source code

public virtual void CurveTo(double x1, double y1, double x2, double y2, double x3, double y3)

Arguments

Type

Name

Description

double

x1

double

y1

double

x2

double

y2

double

x3

double

y3

CurveTo [3/4]

Source code

public virtual void CurveTo(float x2, float y2, float x3, float y3)

Arguments

Type

Name

Description

float

x2

float

y2

float

x3

float

y3

CurveTo [4/4]

Source code

public virtual void CurveTo(double x2, double y2, double x3, double y3)

Arguments

Type

Name

Description

double

x2

double

y2

double

x3

double

y3

CurveFromTo [1/2]

Source code

public virtual void CurveFromTo(float x1, float y1, float x3, float y3)

Arguments

Type

Name

Description

float

x1

float

y1

float

x3

float

y3

CurveFromTo [2/2]

Source code

public virtual void CurveFromTo(double x1, double y1, double x3, double y3)

Arguments

Type

Name

Description

double

x1

double

y1

double

x3

double

y3

Circle [1/2]

Source code

public virtual void Circle(float x, float y, float r)

Arguments

Type

Name

Description

float

x

float

y

float

r

Circle [2/2]

Source code

public virtual void Circle(double x, double y, double r)

Arguments

Type

Name

Description

double

x

double

y

double

r

Rectangle [1/3]

Source code

public virtual void Rectangle(float x, float y, float w, float h)

Arguments

Type

Name

Description

float

x

float

y

float

w

float

h

Rectangle [2/3]

Source code

public virtual void Rectangle(double x, double y, double w, double h)

Arguments

Type

Name

Description

double

x

double

y

double

w

double

h

VariableRectangle

Source code

public virtual void VariableRectangle(Rectangle rect)

Arguments

Type

Name

Description

Rectangle

rect

Rectangle [3/3]

Source code

public virtual void Rectangle(Rectangle rectangle)

Arguments

Type

Name

Description

Rectangle

rectangle

ClosePath

Source code

public virtual void ClosePath()

NewPath

Source code

public virtual void NewPath()

Stroke

Source code

public virtual void Stroke()

ClosePathStroke

Source code

public virtual void ClosePathStroke()

Fill

Source code

public virtual void Fill()

EoFill

Source code

public virtual void EoFill()

FillStroke

Source code

public virtual void FillStroke()

ClosePathFillStroke

Source code

public virtual void ClosePathFillStroke()

EoFillStroke

Source code

public virtual void EoFillStroke()

ClosePathEoFillStroke

Source code

public virtual void ClosePathEoFillStroke()

AddImage [1/9]

Source code

public virtual void AddImage(Image image)

Arguments

Type

Name

Description

Image

image

AddImage [2/9]

Source code

public virtual void AddImage(Image image, bool inlineImage)

Arguments

Type

Name

Description

Image

image

bool

inlineImage

AddImage [3/9]

Source code

public virtual void AddImage(Image image, float a, float b, float c, float d, float e, float f)

Arguments

Type

Name

Description

Image

image

float

a

float

b

float

c

float

d

float

e

float

f

AddImage [4/9]

Source code

public virtual void AddImage(Image image, double a, double b, double c, double d, double e, double f)

Arguments

Type

Name

Description

Image

image

double

a

double

b

double

c

double

d

double

e

double

f

AddImage [5/9]

Source code

public virtual void AddImage(Image image, AffineTransform transform)

Arguments

Type

Name

Description

Image

image

AffineTransform

transform

AddImage [6/9]

Source code

public void AddImage(Image image, Matrix transform)

Arguments

Type

Name

Description

Image

image

Matrix

transform

AddImage [7/9]

Source code

public virtual void AddImage(Image image, float a, float b, float c, float d, float e, float f, bool inlineImage)

Arguments

Type

Name

Description

Image

image

float

a

float

b

float

c

float

d

float

e

float

f

bool

inlineImage

AddImage [8/9]

Source code

public virtual void AddImage(Image image, double a, double b, double c, double d, double e, double f, bool inlineImage)

Arguments

Type

Name

Description

Image

image

double

a

double

b

double

c

double

d

double

e

double

f

bool

inlineImage

AddImage [9/9]

Source code

protected internal void AddImage(Image image, double a, double b, double c, double d, double e, double f, bool inlineImage, bool isMCBlockOpened)

Arguments

Type

Name

Description

Image

image

double

a

double

b

double

c

double

d

double

e

double

f

bool

inlineImage

bool

isMCBlockOpened

Reset [1/2]

Source code

public virtual void Reset()

Reset [2/2]

Source code

public virtual void Reset(bool validateContent)

Arguments

Type

Name

Description

bool

validateContent

BeginText [1/2]

Source code

protected internal virtual void BeginText(bool restoreTM)

Arguments

Type

Name

Description

bool

restoreTM

BeginText [2/2]

Source code

public virtual void BeginText()

EndText

Source code

public virtual void EndText()

SaveState

Source code

public virtual void SaveState()

RestoreState

Source code

public virtual void RestoreState()

SetCharacterSpacing

Source code

public virtual void SetCharacterSpacing(float value)

Arguments

Type

Name

Description

float

value

SetWordSpacing

Source code

public virtual void SetWordSpacing(float value)

Arguments

Type

Name

Description

float

value

SetHorizontalScaling

Source code

public virtual void SetHorizontalScaling(float value)

Arguments

Type

Name

Description

float

value

SetFontAndSize

Source code

public virtual void SetFontAndSize(BaseFont bf, float size)

Arguments

Type

Name

Description

BaseFont

bf

float

size

SetTextRenderingMode

Source code

public virtual void SetTextRenderingMode(int value)

Arguments

Type

Name

Description

int

value

SetTextRise [1/2]

Source code

public virtual void SetTextRise(float value)

Arguments

Type

Name

Description

float

value

SetTextRise [2/2]

Source code

public virtual void SetTextRise(double value)

Arguments

Type

Name

Description

double

value

ShowText [1/2]

Source code

public virtual void ShowText(string text)

Arguments

Type

Name

Description

string

text

ShowTextGid

Source code

public virtual void ShowTextGid(string gids)

Arguments

Type

Name

Description

string

gids

GetKernArray

Source code

public static PdfTextArray GetKernArray(string text, BaseFont font)

Arguments

Type

Name

Description

string

text

BaseFont

font

ShowTextKerned

Source code

public virtual void ShowTextKerned(string text)

Arguments

Type

Name

Description

string

text

NewlineShowText [1/2]

Source code

public virtual void NewlineShowText(string text)

Arguments

Type

Name

Description

string

text

NewlineShowText [2/2]

Source code

public virtual void NewlineShowText(float wordSpacing, float charSpacing, string text)

Arguments

Type

Name

Description

float

wordSpacing

float

charSpacing

string

text

SetTextMatrix [1/4]

Source code

public virtual void SetTextMatrix(float a, float b, float c, float d, float x, float y)

Arguments

Type

Name

Description

float

a

float

b

float

c

float

d

float

x

float

y

SetTextMatrix [2/4]

Source code

public virtual void SetTextMatrix(AffineTransform transform)

Arguments

Type

Name

Description

AffineTransform

transform

SetTextMatrix [3/4]

Source code

public void SetTextMatrix(Matrix transform)

Arguments

Type

Name

Description

Matrix

transform

SetTextMatrix [4/4]

Source code

public virtual void SetTextMatrix(float x, float y)

Arguments

Type

Name

Description

float

x

float

y

MoveText

Source code

public virtual void MoveText(float x, float y)

Arguments

Type

Name

Description

float

x

float

y

MoveTextWithLeading

Source code

public virtual void MoveTextWithLeading(float x, float y)

Arguments

Type

Name

Description

float

x

float

y

NewlineText

Source code

public virtual void NewlineText()

GetSize

Source code

internal int GetSize(bool includeMarkedContentSize)

Arguments

Type

Name

Description

bool

includeMarkedContentSize

AddOutline

Source code

public virtual void AddOutline(PdfOutline outline, string name)

Arguments

Type

Name

Description

PdfOutline

outline

string

name

GetEffectiveStringWidth

Source code

public virtual float GetEffectiveStringWidth(string text, bool kerned)

Arguments

Type

Name

Description

string

text

bool

kerned

ShowTextAligned

Source code

public virtual void ShowTextAligned(int alignment, string text, float x, float y, float rotation)

Arguments

Type

Name

Description

int

alignment

string

text

float

x

float

y

float

rotation

ShowTextAlignedKerned

Source code

public virtual void ShowTextAlignedKerned(int alignment, string text, float x, float y, float rotation)

Arguments

Type

Name

Description

int

alignment

string

text

float

x

float

y

float

rotation

ConcatCTM [1/4]

Source code

public virtual void ConcatCTM(float a, float b, float c, float d, float e, float f)

Arguments

Type

Name

Description

float

a

float

b

float

c

float

d

float

e

float

f

ConcatCTM [2/4]

Source code

public virtual void ConcatCTM(double a, double b, double c, double d, double e, double f)

Arguments

Type

Name

Description

double

a

double

b

double

c

double

d

double

e

double

f

ConcatCTM [3/4]

Source code

public virtual void ConcatCTM(AffineTransform transform)

Arguments

Type

Name

Description

AffineTransform

transform

ConcatCTM [4/4]

Source code

public void ConcatCTM(Matrix transform)

Arguments

Type

Name

Description

Matrix

transform

BezierArc [1/2]

Source code

public static List<double> BezierArc(float x1, float y1, float x2, float y2, float startAng, float extent)

Arguments

Type

Name

Description

float

x1

float

y1

float

x2

float

y2

float

startAng

float

extent

BezierArc [2/2]

Source code

public static List<double> BezierArc(double x1, double y1, double x2, double y2, double startAng, double extent)

Arguments

Type

Name

Description

double

x1

double

y1

double

x2

double

y2

double

startAng

double

extent

Arc [1/2]

Source code

public virtual void Arc(float x1, float y1, float x2, float y2, float startAng, float extent)

Arguments

Type

Name

Description

float

x1

float

y1

float

x2

float

y2

float

startAng

float

extent

Arc [2/2]

Source code

public virtual void Arc(double x1, double y1, double x2, double y2, double startAng, double extent)

Arguments

Type

Name

Description

double

x1

double

y1

double

x2

double

y2

double

startAng

double

extent

Ellipse [1/2]

Source code

public virtual void Ellipse(double x1, double y1, double x2, double y2)

Arguments

Type

Name

Description

double

x1

double

y1

double

x2

double

y2

Ellipse [2/2]

Source code

public virtual void Ellipse(float x1, float y1, float x2, float y2)

Arguments

Type

Name

Description

float

x1

float

y1

float

x2

float

y2

CreatePattern [1/4]

Source code

public virtual PdfPatternPainter CreatePattern(float width, float height, float xstep, float ystep)

Arguments

Type

Name

Description

float

width

float

height

float

xstep

float

ystep

CreatePattern [2/4]

Source code

public virtual PdfPatternPainter CreatePattern(float width, float height)

Arguments

Type

Name

Description

float

width

float

height

CreatePattern [3/4]

Source code

public virtual PdfPatternPainter CreatePattern(float width, float height, float xstep, float ystep, BaseColor color)

Arguments

Type

Name

Description

float

width

float

height

float

xstep

float

ystep

BaseColor

color

CreatePattern [4/4]

Source code

public virtual PdfPatternPainter CreatePattern(float width, float height, BaseColor color)

Arguments

Type

Name

Description

float

width

float

height

BaseColor

color

CreateTemplate [1/2]

Source code

public virtual PdfTemplate CreateTemplate(float width, float height)

Arguments

Type

Name

Description

float

width

float

height

CreateTemplate [2/2]

Source code

internal PdfTemplate CreateTemplate(float width, float height, PdfName forcedName)

Arguments

Type

Name

Description

float

width

float

height

PdfName

forcedName

CreateAppearance [1/2]

Source code

public virtual PdfAppearance CreateAppearance(float width, float height)

Arguments

Type

Name

Description

float

width

float

height

CreateAppearance [2/2]

Source code

internal PdfAppearance CreateAppearance(float width, float height, PdfName forcedName)

Arguments

Type

Name

Description

float

width

float

height

PdfName

forcedName

AddPSXObject

Source code

public virtual void AddPSXObject(PdfPSXObject psobject)

Arguments

Type

Name

Description

PdfPSXObject

psobject

AddTemplate [1/13]

Source code

public virtual void AddTemplate(PdfTemplate template, float a, float b, float c, float d, float e, float f)

Arguments

Type

Name

Description

PdfTemplate

template

float

a

float

b

float

c

float

d

float

e

float

f

AddTemplate [2/13]

Source code

public virtual void AddTemplate(PdfTemplate template, double a, double b, double c, double d, double e, double f)

Arguments

Type

Name

Description

PdfTemplate

template

double

a

double

b

double

c

double

d

double

e

double

f

AddTemplate [3/13]

Source code

public virtual void AddTemplate(PdfTemplate template, float a, float b, float c, float d, float e, float f, bool tagContent)

Arguments

Type

Name

Description

PdfTemplate

template

float

a

float

b

float

c

float

d

float

e

float

f

bool

tagContent

AddTemplate [4/13]

Source code

public virtual void AddTemplate(PdfTemplate template, double a, double b, double c, double d, double e, double f, bool tagContent)

Arguments

Type

Name

Description

PdfTemplate

template

double

a

double

b

double

c

double

d

double

e

double

f

bool

tagContent

AddTemplate [5/13]

Source code

public virtual void AddTemplate(PdfTemplate template, double a, double b, double c, double d, double e, double f, bool tagTemplate, bool tagContent)

Arguments

Type

Name

Description

PdfTemplate

template

double

a

double

b

double

c

double

d

double

e

double

f

bool

tagTemplate

bool

tagContent

AddFormXObj [1/2]

Source code

public virtual PdfName AddFormXObj(PdfStream formXObj, PdfName name, float a, float b, float c, float d, float e, float f)

Arguments

Type

Name

Description

PdfStream

formXObj

PdfName

name

float

a

float

b

float

c

float

d

float

e

float

f

AddFormXObj [2/2]

Source code

public virtual PdfName AddFormXObj(PdfStream formXObj, PdfName name, double a, double b, double c, double d, double e, double f)

Arguments

Type

Name

Description

PdfStream

formXObj

PdfName

name

double

a

double

b

double

c

double

d

double

e

double

f

AddTemplate [6/13]

Source code

public virtual void AddTemplate(PdfTemplate template, AffineTransform transform)

Arguments

Type

Name

Description

PdfTemplate

template

AffineTransform

transform

AddTemplate [7/13]

Source code

public virtual void AddTemplate(PdfTemplate template, AffineTransform transform, bool tagContent)

Arguments

Type

Name

Description

PdfTemplate

template

AffineTransform

transform

bool

tagContent

AddTemplate [8/13]

Source code

public void AddTemplate(PdfTemplate template, Matrix transform, bool tagContent)

Arguments

Type

Name

Description

PdfTemplate

template

Matrix

transform

bool

tagContent

AddTemplate [9/13]

Source code

public void AddTemplate(PdfTemplate template, Matrix transform)

Arguments

Type

Name

Description

PdfTemplate

template

Matrix

transform

AddTemplateReference [1/2]

Source code

internal void AddTemplateReference(PdfIndirectReference template, PdfName name, float a, float b, float c, float d, float e, float f)

Arguments

Type

Name

Description

PdfIndirectReference

template

PdfName

name

float

a

float

b

float

c

float

d

float

e

float

f

AddTemplateReference [2/2]

Source code

internal void AddTemplateReference(PdfIndirectReference template, PdfName name, double a, double b, double c, double d, double e, double f)

Arguments

Type

Name

Description

PdfIndirectReference

template

PdfName

name

double

a

double

b

double

c

double

d

double

e

double

f

AddTemplate [10/13]

Source code

public virtual void AddTemplate(PdfTemplate template, float x, float y)

Arguments

Type

Name

Description

PdfTemplate

template

float

x

float

y

AddTemplate [11/13]

Source code

public virtual void AddTemplate(PdfTemplate template, double x, double y)

Arguments

Type

Name

Description

PdfTemplate

template

double

x

double

y

AddTemplate [12/13]

Source code

public virtual void AddTemplate(PdfTemplate template, float x, float y, bool tagContent)

Arguments

Type

Name

Description

PdfTemplate

template

float

x

float

y

bool

tagContent

AddTemplate [13/13]

Source code

public virtual void AddTemplate(PdfTemplate template, double x, double y, bool tagContent)

Arguments

Type

Name

Description

PdfTemplate

template

double

x

double

y

bool

tagContent

SetCMYKColorFill

Source code

public virtual void SetCMYKColorFill(int cyan, int magenta, int yellow, int black)

Arguments

Type

Name

Description

int

cyan

int

magenta

int

yellow

int

black

SetCMYKColorStroke

Source code

public virtual void SetCMYKColorStroke(int cyan, int magenta, int yellow, int black)

Arguments

Type

Name

Description

int

cyan

int

magenta

int

yellow

int

black

SetRGBColorFill

Source code

public virtual void SetRGBColorFill(int red, int green, int blue)

Arguments

Type

Name

Description

int

red

int

green

int

blue

SetRGBColorStroke

Source code

public virtual void SetRGBColorStroke(int red, int green, int blue)

Arguments

Type

Name

Description

int

red

int

green

int

blue

SetColorStroke [1/4]

Source code

public virtual void SetColorStroke(BaseColor value)

Arguments

Type

Name

Description

BaseColor

value

SetColorFill [1/4]

Source code

public virtual void SetColorFill(BaseColor value)

Arguments

Type

Name

Description

BaseColor

value

SetColorFill [2/4]

Source code

public virtual void SetColorFill(PdfSpotColor sp, float tint)

Arguments

Type

Name

Description

PdfSpotColor

sp

float

tint

SetColorFill [3/4]

Source code

public virtual void SetColorFill(PdfDeviceNColor dn, float[] tints)

Arguments

Type

Name

Description

PdfDeviceNColor

dn

float``[]

tints

SetColorFill [4/4]

Source code

public virtual void SetColorFill(PdfLabColor lab, float l, float a, float b)

Arguments

Type

Name

Description

PdfLabColor

lab

float

l

float

a

float

b

SetColorStroke [2/4]

Source code

public virtual void SetColorStroke(PdfSpotColor sp, float tint)

Arguments

Type

Name

Description

PdfSpotColor

sp

float

tint

SetColorStroke [3/4]

Source code

public virtual void SetColorStroke(PdfDeviceNColor sp, float[] tints)

Arguments

Type

Name

Description

PdfDeviceNColor

sp

float``[]

tints

SetColorStroke [4/4]

Source code

public virtual void SetColorStroke(PdfLabColor lab, float l, float a, float b)

Arguments

Type

Name

Description

PdfLabColor

lab

float

l

float

a

float

b

SetPatternFill [1/3]

Source code

public virtual void SetPatternFill(PdfPatternPainter p)

Arguments

Type

Name

Description

PdfPatternPainter

p

OutputColorNumbers

Source code

internal void OutputColorNumbers(BaseColor color, float tint)

Arguments

Type

Name

Description

BaseColor

color

float

tint

SetPatternFill [2/3]

Source code

public virtual void SetPatternFill(PdfPatternPainter p, BaseColor color)

Arguments

Type

Name

Description

PdfPatternPainter

p

BaseColor

color

SetPatternFill [3/3]

Source code

public virtual void SetPatternFill(PdfPatternPainter p, BaseColor color, float tint)

Arguments

Type

Name

Description

PdfPatternPainter

p

BaseColor

color

float

tint

SetPatternStroke [1/3]

Source code

public virtual void SetPatternStroke(PdfPatternPainter p, BaseColor color)

Arguments

Type

Name

Description

PdfPatternPainter

p

BaseColor

color

SetPatternStroke [2/3]

Source code

public virtual void SetPatternStroke(PdfPatternPainter p, BaseColor color, float tint)

Arguments

Type

Name

Description

PdfPatternPainter

p

BaseColor

color

float

tint

SetPatternStroke [3/3]

Source code

public virtual void SetPatternStroke(PdfPatternPainter p)

Arguments

Type

Name

Description

PdfPatternPainter

p

PaintShading [1/2]

Source code

public virtual void PaintShading(PdfShading shading)

Arguments

Type

Name

Description

PdfShading

shading

PaintShading [2/2]

Source code

public virtual void PaintShading(PdfShadingPattern shading)

Arguments

Type

Name

Description

PdfShadingPattern

shading

SetShadingFill

Source code

public virtual void SetShadingFill(PdfShadingPattern shading)

Arguments

Type

Name

Description

PdfShadingPattern

shading

SetShadingStroke

Source code

public virtual void SetShadingStroke(PdfShadingPattern shading)

Arguments

Type

Name

Description

PdfShadingPattern

shading

CheckWriter

Source code

protected virtual void CheckWriter()

ShowText [2/2]

Source code

public virtual void ShowText(PdfTextArray text)

Arguments

Type

Name

Description

PdfTextArray

text

LocalGoto

Source code

public virtual void LocalGoto(string name, float llx, float lly, float urx, float ury)

Arguments

Type

Name

Description

string

name

float

llx

float

lly

float

urx

float

ury

LocalDestination

Source code

public virtual bool LocalDestination(string name, PdfDestination destination)

Arguments

Type

Name

Description

string

name

PdfDestination

destination

GetDuplicate

Source code

public virtual PdfContentByte GetDuplicate(bool inheritGraphicState)

Arguments

Type

Name

Description

bool

inheritGraphicState

InheritGraphicState

Source code

public virtual void InheritGraphicState(PdfContentByte parentCanvas)

Arguments

Type

Name

Description

PdfContentByte

parentCanvas

RemoteGoto [1/2]

Source code

public virtual void RemoteGoto(string filename, string name, float llx, float lly, float urx, float ury)

Arguments

Type

Name

Description

string

filename

string

name

float

llx

float

lly

float

urx

float

ury

RemoteGoto [2/2]

Source code

public virtual void RemoteGoto(string filename, int page, float llx, float lly, float urx, float ury)

Arguments

Type

Name

Description

string

filename

int

page

float

llx

float

lly

float

urx

float

ury

RoundRectangle [1/2]

Source code

public virtual void RoundRectangle(float x, float y, float w, float h, float r)

Arguments

Type

Name

Description

float

x

float

y

float

w

float

h

float

r

RoundRectangle [2/2]

Source code

public virtual void RoundRectangle(double x, double y, double w, double h, double r)

Arguments

Type

Name

Description

double

x

double

y

double

w

double

h

double

r

SetAction

Source code

public virtual void SetAction(PdfAction action, float llx, float lly, float urx, float ury)

Arguments

Type

Name

Description

PdfAction

action

float

llx

float

lly

float

urx

float

ury

SetLiteral [1/3]

Source code

public virtual void SetLiteral(string s)

Arguments

Type

Name

Description

string

s

SetLiteral [2/3]

Source code

public virtual void SetLiteral(char c)

Arguments

Type

Name

Description

char

c

SetLiteral [3/3]

Source code

public virtual void SetLiteral(float n)

Arguments

Type

Name

Description

float

n

CheckNoPattern

Source code

internal void CheckNoPattern(PdfTemplate t)

Arguments

Type

Name

Description

PdfTemplate

t

DrawRadioField [1/2]

Source code

public virtual void DrawRadioField(float llx, float lly, float urx, float ury, bool on)

Arguments

Type

Name

Description

float

llx

float

lly

float

urx

float

ury

bool

on

DrawRadioField [2/2]

Source code

public virtual void DrawRadioField(double llx, double lly, double urx, double ury, bool on)

Arguments

Type

Name

Description

double

llx

double

lly

double

urx

double

ury

bool

on

DrawTextField [1/2]

Source code

public virtual void DrawTextField(float llx, float lly, float urx, float ury)

Arguments

Type

Name

Description

float

llx

float

lly

float

urx

float

ury

DrawTextField [2/2]

Source code

public virtual void DrawTextField(double llx, double lly, double urx, double ury)

Arguments

Type

Name

Description

double

llx

double

lly

double

urx

double

ury

DrawButton [1/2]

Source code

public virtual void DrawButton(float llx, float lly, float urx, float ury, string text, BaseFont bf, float size)

Arguments

Type

Name

Description

float

llx

float

lly

float

urx

float

ury

string

text

BaseFont

bf

float

size

DrawButton [2/2]

Source code

public virtual void DrawButton(double llx, double lly, double urx, double ury, string text, BaseFont bf, float size)

Arguments

Type

Name

Description

double

llx

double

lly

double

urx

double

ury

string

text

BaseFont

bf

float

size

SetGState

Source code

public virtual void SetGState(PdfGState gstate)

Arguments

Type

Name

Description

PdfGState

gstate

BeginLayer

Source code

public virtual void BeginLayer(IPdfOCG layer)

Arguments

Type

Name

Description

IPdfOCG

layer

EndLayer

Source code

public virtual void EndLayer()

AddAnnotation [1/2]

Source code

internal virtual void AddAnnotation(PdfAnnotation annot)

Arguments

Type

Name

Description

PdfAnnotation

annot

AddAnnotation [2/2]

Source code

public virtual void AddAnnotation(PdfAnnotation annot, bool applyCTM)

Arguments

Type

Name

Description

PdfAnnotation

annot

bool

applyCTM

SetDefaultColorspace

Source code

public virtual void SetDefaultColorspace(PdfName name, PdfObject obj)

Arguments

Type

Name

Description

PdfName

name

PdfObject

obj

Transform [1/2]

Source code

public virtual void Transform(AffineTransform af)

Arguments

Type

Name

Description

AffineTransform

af

Transform [2/2]

Source code

public void Transform(Matrix tx)

Arguments

Type

Name

Description

Matrix

tx

BeginMarkedContentSequence [1/4]

Source code

public virtual void BeginMarkedContentSequence(PdfStructureElement struc)

Arguments

Type

Name

Description

PdfStructureElement

struc

BeginMarkedContentSequence [2/4]

Source code

public virtual void BeginMarkedContentSequence(PdfStructureElement struc, string expansion)

Arguments

Type

Name

Description

PdfStructureElement

struc

string

expansion

EndMarkedContentSequence

Source code

public virtual void EndMarkedContentSequence()

BeginMarkedContentSequence [3/4]

Source code

public virtual void BeginMarkedContentSequence(PdfName tag, PdfDictionary property, bool inline)

Arguments

Type

Name

Description

PdfName

tag

PdfDictionary

property

bool

inline

BeginMarkedContentSequence [4/4]

Source code

public virtual void BeginMarkedContentSequence(PdfName tag)

Arguments

Type

Name

Description

PdfName

tag

SanityCheck

Source code

public virtual void SanityCheck()

OpenMCBlock

Source code

public virtual void OpenMCBlock(IAccessibleElement element)

Arguments

Type

Name

Description

IAccessibleElement

element

CloseMCBlock

Source code

public virtual void CloseMCBlock(IAccessibleElement element)

Arguments

Type

Name

Description

IAccessibleElement

element

SaveMCBlocks

Source code

internal IList<IAccessibleElement> SaveMCBlocks()

RestoreMCBlocks

Source code

internal void RestoreMCBlocks(IList<IAccessibleElement> mcElements)

Arguments

Type

Name

Description

IList<

IAccessibleElement

>

mcElements

GetMcDepth

Source code

internal int GetMcDepth()

SetMcDepth

Source code

internal void SetMcDepth(int value)

Arguments

Type

Name

Description

int

value

GetMcElements

Source code

internal IList<IAccessibleElement> GetMcElements()

SetMcElements

Source code

internal void SetMcElements(IList<IAccessibleElement> value)

Arguments

Type

Name

Description

IList<

IAccessibleElement

>

value

UpdateTx

Source code

internal void UpdateTx(string text, float Tj)

Arguments

Type

Name

Description

string

text

float

Tj

CheckState

Source code

protected virtual void CheckState()

Properties

SuppressTagging

public bool SuppressTagging { get; set; }

InternalBuffer

public virtual ByteBuffer InternalBuffer { get; }

XTLM

public virtual float XTLM { get; }

YTLM

public virtual float YTLM { get; }

CharacterSpacing

public virtual float CharacterSpacing { get; }

WordSpacing

public virtual float WordSpacing { get; }

HorizontalScaling

public virtual float HorizontalScaling { get; }

Leading

public virtual float Leading { get; }

Size

internal int Size { get; }

RootOutline

public virtual PdfOutline RootOutline { get; }

PdfWriter

public virtual PdfWriter PdfWriter { get; }

PdfDocument

public virtual PdfDocument PdfDocument { get; }

Duplicate

public virtual PdfContentByte Duplicate { get; }

PageResources

internal virtual PageResources PageResources { get; }

CurrentPage

protected virtual PdfIndirectReference CurrentPage { get; }

InText

protected internal virtual bool InText { get; }

Generated with ModularDoc