Table of Contents

Class PdfStamperImp

Namespace
iTextSharp.text.pdf
Assembly
iTextSharp.LGPLv2.Core.dll
public class PdfStamperImp : PdfWriter, IDocListener, IElementListener, IDisposable, IPdfViewerPreferences, IPdfEncryptionSettings, IPdfVersion, IPdfDocumentActions, IPdfPageActions, IPdfXConformance, IPdfRunDirection, IPdfAnnotations
Inheritance
PdfStamperImp
Implements
Inherited Members

Fields

Append

protected bool Append

Field Value

bool

FieldTemplates

protected INullValueDictionary<PdfTemplate, object> FieldTemplates

Field Value

INullValueDictionary<PdfTemplate, object>

FieldsAdded

protected bool FieldsAdded

Field Value

bool

Flat

protected bool Flat

Field Value

bool

FlatFreeText

protected bool FlatFreeText

Field Value

bool

InitialXrefSize

protected int InitialXrefSize

Field Value

int

Marked

protected NullValueDictionary<int, int> Marked

Field Value

NullValueDictionary<int, int>

NamePtr

protected int[] NamePtr

Field Value

int[]

OpenAction

protected PdfAction OpenAction

Field Value

PdfAction

PartialFlattening

protected INullValueDictionary<string, object> PartialFlattening

Field Value

INullValueDictionary<string, object>

UseVp

protected bool UseVp

Field Value

bool

acroFields

protected AcroFields acroFields

Field Value

AcroFields

sigFlags

protected int sigFlags

Field Value

int

viewerPreferences

protected PdfViewerPreferencesImp viewerPreferences

Field Value

PdfViewerPreferencesImp

Properties

DirectContent

public override PdfContentByte DirectContent { get; }

Property Value

PdfContentByte

DirectContentUnder

public override PdfContentByte DirectContentUnder { get; }

Property Value

PdfContentByte

Duration

Always throws an UnsupportedOperationException .

public override int Duration { set; }

Property Value

int

SigFlags

Set the signature flags.

public override int SigFlags { set; }

Property Value

int

Thumbnail

@see com.lowagie.text.pdf.PdfWriter#setThumbnail(com.lowagie.text.Image)

public override Image Thumbnail { set; }

Property Value

Image

Transition

Always throws an UnsupportedOperationException .

public override PdfTransition Transition { set; }

Property Value

PdfTransition

ViewerPreferences

Sets the viewer preferences. @see PdfWriter#setViewerPreferences(int)

public override int ViewerPreferences { set; }

Property Value

int

Methods

AddAnnotation(PdfAnnotation)

@see com.lowagie.text.pdf.PdfWriter#addAnnotation(com.lowagie.text.pdf.PdfAnnotation)

public override void AddAnnotation(PdfAnnotation annot)

Parameters

annot PdfAnnotation

AddComments(FdfReader)

@throws IOException

public void AddComments(FdfReader fdf)

Parameters

fdf FdfReader

AddViewerPreference(PdfName, PdfObject)

Adds a viewer preference @see PdfViewerPreferences#addViewerPreference

public override void AddViewerPreference(PdfName key, PdfObject value)

Parameters

key PdfName
value PdfObject

GetNewObjectNumber(PdfReader, int, int)

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

Parameters

reader PdfReader
number int
generation int

Returns

int

GetPageReference(int)

@see com.lowagie.text.pdf.PdfWriter#getPageReference(int)

public override PdfIndirectReference GetPageReference(int page)

Parameters

page int

Returns

PdfIndirectReference

GetPdfLayers()

Gets the PdfLayer objects in an existing document as a Map with the names/titles of the layers as keys. @since 2.1.2

public INullValueDictionary<string, PdfLayer> GetPdfLayers()

Returns

INullValueDictionary<string, PdfLayer>

a Map with all the PdfLayers in the document (and the name/title of the layer as key)

MarkUsed(int)

protected void MarkUsed(int num)

Parameters

num int

MarkUsed(PdfObject)

protected void MarkUsed(PdfObject obj)

Parameters

obj PdfObject

ReadOcProperties()

Reads the OCProperties dictionary from the catalog of the existing document and fills the documentOCG, documentOCGorder and OCGRadioGroup variables in PdfWriter. Note that the original OCProperties of the existing document can contain more information. @since 2.1.2

protected void ReadOcProperties()

RegisterReader(PdfReader, bool)

@throws IOException

public void RegisterReader(PdfReader reader, bool openFile)

Parameters

reader PdfReader
openFile bool

SetAdditionalAction(PdfName, PdfAction)

Additional-actions defining the actions to be taken in response to various trigger events affecting the document as a whole. The actions types allowed are: DOCUMENT_CLOSE , WILL_SAVE , DID_SAVE , WILL_PRINT and DID_PRINT . @throws PdfException on invalid action type

public override void SetAdditionalAction(PdfName actionType, PdfAction action)

Parameters

actionType PdfName

the action type

action PdfAction

the action to execute in response to the trigger

SetOpenAction(string)

@see com.lowagie.text.pdf.PdfWriter#setOpenAction(java.lang.String)

public override void SetOpenAction(string name)

Parameters

name string

SetOpenAction(PdfAction)

@see com.lowagie.text.pdf.PdfWriter#setOpenAction(com.lowagie.text.pdf.PdfAction)

public override void SetOpenAction(PdfAction action)

Parameters

action PdfAction

SetPageAction(PdfName, PdfAction)

Always throws an UnsupportedOperationException . @throws PdfException ignore @see PdfStamper#setPageAction(PdfName, PdfAction, int)

public override void SetPageAction(PdfName actionType, PdfAction action)

Parameters

actionType PdfName

ignore

action PdfAction

ignore

UnRegisterReader(PdfReader)

public void UnRegisterReader(PdfReader reader)

Parameters

reader PdfReader