iText 5

PdfStamperImp (1)

PdfStamperImp Public class

Diagram

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

Members

Properties

Internal properties

Type

Name

Methods

bool

ContentWritten

get

bool

FormFlattening

set

bool

FreeTextFlattening

set

bool

RotateContents

get, set

Public properties

Methods

Protected methods
Protected internal methods

Returns

Name

void

AddFieldResources

()

void

AlterContents

()

void

Close

(IDictionary<string, string> moreInfo)

void

FlatFields

()

void

FlatFreeTextFields

()

void

FlattenAnnotations

()

int

GetNewObjectNumber

(

PdfReader

reader, int number, int generation)

void

MarkUsed

(int num)

void

SetJavaScript

()

void

SetOutlines

()

Internal methods
Public methods
Internal Static methods

Returns

Name

void

FindAllObjects

(

PdfReader

reader,

PdfObject

obj,

IntHashtable

hits)

Details

Inheritance

Nested types

Classes
  • PageStamp

Constructors

PdfStamperImp

Source code

protected internal PdfStamperImp(PdfReader reader, Stream os, char pdfVersion, bool append)

Arguments

Type

Name

Description

PdfReader

reader

Stream

os

char

pdfVersion

bool

append

Methods

GetCounter

Source code

protected override ICounter GetCounter()

ReadColorProfile

Source code

protected virtual void ReadColorProfile()

SetViewerPreferences

Source code

protected virtual void SetViewerPreferences()

Close [1/2]

Source code

protected internal virtual void Close(IDictionary<string, string> moreInfo)

Arguments

Type

Name

Description

IDictionary<string, string>

moreInfo

Close [2/2]

Source code

protected virtual void Close(PdfIndirectReference info, int skipInfo)

Arguments

Type

Name

Description

PdfIndirectReference

info

int

skipInfo

ApplyRotation

Source code

internal void ApplyRotation(PdfDictionary pageN, ByteBuffer out_p)

Arguments

Type

Name

Description

PdfDictionary

pageN

ByteBuffer

out_p

AlterContents

Source code

protected internal virtual void AlterContents()

AlterResources

Source code

internal void AlterResources(PageStamp ps)

Arguments

Type

Name

Description

PageStamp

ps

GetNewObjectNumber

Source code

protected internal override int GetNewObjectNumber(PdfReader reader, int number, int generation)

Arguments

Type

Name

Description

PdfReader

reader

int

number

int

generation

GetReaderFile

Source code

internal override RandomAccessFileOrArray GetReaderFile(PdfReader reader)

Arguments

Type

Name

Description

PdfReader

reader

RegisterReader

Source code

public virtual void RegisterReader(PdfReader reader, bool openFile)

Arguments

Type

Name

Description

PdfReader

reader

bool

openFile

UnRegisterReader

Source code

public virtual void UnRegisterReader(PdfReader reader)

Arguments

Type

Name

Description

PdfReader

reader

FindAllObjects

Source code

internal static void FindAllObjects(PdfReader reader, PdfObject obj, IntHashtable hits)

Arguments

Type

Name

Description

PdfReader

reader

PdfObject

obj

IntHashtable

hits

AddComments

Source code

public virtual void AddComments(FdfReader fdf)

Arguments

Type

Name

Description

FdfReader

fdf

GetPageStamp

Source code

internal PageStamp GetPageStamp(int pageNum)

Arguments

Type

Name

Description

int

pageNum

GetUnderContent

Source code

internal PdfContentByte GetUnderContent(int pageNum)

Arguments

Type

Name

Description

int

pageNum

GetOverContent

Source code

internal PdfContentByte GetOverContent(int pageNum)

Arguments

Type

Name

Description

int

pageNum

CorrectAcroFieldPages

Source code

internal void CorrectAcroFieldPages(int page)

Arguments

Type

Name

Description

int

page

ReplacePage

Source code

internal void ReplacePage(PdfReader r, int pageImported, int pageReplaced)

Arguments

Type

Name

Description

PdfReader

r

int

pageImported

int

pageReplaced

InsertPage

Source code

internal void InsertPage(int pageNumber, Rectangle mediabox)

Arguments

Type

Name

Description

int

pageNumber

Rectangle

mediabox

GetAcroFields

Source code

internal AcroFields GetAcroFields()

PartialFormFlattening

Source code

internal bool PartialFormFlattening(string name)

Arguments

Type

Name

Description

string

name

FlatFields

Source code

protected internal virtual void FlatFields()

EliminateAcroformObjects

Source code

internal void EliminateAcroformObjects()

CalculateTemplateTransformationMatrix

Source code

internal AffineTransform CalculateTemplateTransformationMatrix(AffineTransform currentMatrix, double fieldRotation, Rectangle box)

Arguments

Type

Name

Description

AffineTransform

currentMatrix

double

fieldRotation

Rectangle

box

SweepKids

Source code

internal void SweepKids(PdfObject obj)

Arguments

Type

Name

Description

PdfObject

obj

FlattenAnnotations

Source code

protected internal virtual void FlattenAnnotations()

FlatFreeTextFields

Source code

protected internal virtual void FlatFreeTextFields()

GetPageReference

Source code

public override PdfIndirectReference GetPageReference(int page)

Arguments

Type

Name

Description

int

page

AddAnnotation [1/3]

Source code

public override void AddAnnotation(PdfAnnotation annot)

Arguments

Type

Name

Description

PdfAnnotation

annot

AddDocumentField

Source code

internal void AddDocumentField(PdfIndirectReference ref_p)

Arguments

Type

Name

Description

PdfIndirectReference

ref_p

AddFieldResources

Source code

protected internal virtual void AddFieldResources()

ExpandFields

Source code

internal void ExpandFields(PdfFormField field, List<PdfAnnotation> allAnnots)

Arguments

Type

Name

Description

PdfFormField

field

List<

PdfAnnotation

>

allAnnots

AddAnnotation [2/3]

Source code

internal void AddAnnotation(PdfAnnotation annot, PdfDictionary pageN)

Arguments

Type

Name

Description

PdfAnnotation

annot

PdfDictionary

pageN

AddAnnotation [3/3]

Source code

internal override void AddAnnotation(PdfAnnotation annot, int page)

Arguments

Type

Name

Description

PdfAnnotation

annot

int

page

DeleteOutlines

Source code

internal void DeleteOutlines()

SetJavaScript

Source code

protected internal virtual void SetJavaScript()

AddFileAttachments

Source code

protected virtual void AddFileAttachments()

MakePackage

Source code

internal void MakePackage(PdfCollection collection)

Arguments

Type

Name

Description

PdfCollection

collection

SetOutlines

Source code

protected internal virtual void SetOutlines()

AddViewerPreference

Source code

public override void AddViewerPreference(PdfName key, PdfObject value)

Arguments

Type

Name

Description

PdfName

key

PdfObject

value

SetPageAction [1/2]

Source code

public override void SetPageAction(PdfName actionType, PdfAction action)

Arguments

Type

Name

Description

PdfName

actionType

PdfAction

action

SetPageAction [2/2]

Source code

internal void SetPageAction(PdfName actionType, PdfAction action, int page)

Arguments

Type

Name

Description

PdfName

actionType

PdfAction

action

int

page

SetDuration

Source code

internal void SetDuration(int seconds, int page)

Arguments

Type

Name

Description

int

seconds

int

page

SetTransition

Source code

internal void SetTransition(PdfTransition transition, int page)

Arguments

Type

Name

Description

PdfTransition

transition

int

page

MarkUsed [1/2]

Source code

public virtual void MarkUsed(PdfObject obj)

Arguments

Type

Name

Description

PdfObject

obj

MarkUsed [2/2]

Source code

protected internal virtual void MarkUsed(int num)

Arguments

Type

Name

Description

int

num

IsAppend

Source code

internal bool IsAppend()

SetAdditionalAction

Source code

public override void SetAdditionalAction(PdfName actionType, PdfAction action)

Arguments

Type

Name

Description

PdfName

actionType

PdfAction

action

SetOpenAction [1/2]

Source code

public override void SetOpenAction(PdfAction action)

Arguments

Type

Name

Description

PdfAction

action

SetOpenAction [2/2]

Source code

public override void SetOpenAction(string name)

Arguments

Type

Name

Description

string

name

SetThumbnail

Source code

internal void SetThumbnail(Image image, int page)

Arguments

Type

Name

Description

Image

image

int

page

ReadOCProperties

Source code

protected virtual void ReadOCProperties()

GetPdfLayers

Source code

public virtual Dictionary<string, PdfLayer> GetPdfLayers()

RegisterLayer

Source code

internal override void RegisterLayer(IPdfOCG layer)

Arguments

Type

Name

Description

IPdfOCG

layer

CreateXmpMetadata

Source code

public override void CreateXmpMetadata()

GetPdfReader

Source code

public PdfReader GetPdfReader()

Properties

RotateContents

internal bool RotateContents { get; set; }

ContentWritten

internal bool ContentWritten { get; }

FormFlattening

internal bool FormFlattening { set; }

FreeTextFlattening

internal bool FreeTextFlattening { set; }

FlatAnnotations

public virtual bool FlatAnnotations { set; }

ViewerPreferences

public override int ViewerPreferences { set; }

SigFlags

public override int SigFlags { set; }

Duration

public override int Duration { set; }

Transition

public override PdfTransition Transition { set; }

Thumbnail

public override Image Thumbnail { set; }

DirectContent

public override PdfContentByte DirectContent { get; }

DirectContentUnder

public override PdfContentByte DirectContentUnder { get; }

Generated with ModularDoc