Skip to main content
Skip table of contents

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
TypeNameMethods
boolContentWrittenget
boolFormFlatteningset
boolFreeTextFlatteningset
boolRotateContentsget, set
Public properties

Methods

Protected methods
Protected internal methods
ReturnsName
voidAddFieldResources()
voidAlterContents()
voidClose(IDictionary<string, string> moreInfo)
voidFlatFields()
voidFlatFreeTextFields()
voidFlattenAnnotations()
intGetNewObjectNumber(PdfReader reader, int number, int generation)
voidMarkUsed(int num)
voidSetJavaScript()
voidSetOutlines()
Internal methods
ReturnsName
voidAddAnnotation(...)
voidAddDocumentField(PdfIndirectReference ref_p)
voidAlterResources(PageStamp ps)
voidApplyRotation(PdfDictionary pageN, ByteBuffer out_p)
AffineTransformCalculateTemplateTransformationMatrix(AffineTransform currentMatrix, double fieldRotation, Rectangle box)
voidCorrectAcroFieldPages(int page)
voidDeleteOutlines()
voidEliminateAcroformObjects()
voidExpandFields(PdfFormField field, List<PdfAnnotation> allAnnots)
AcroFieldsGetAcroFields()
PdfContentByteGetOverContent(int pageNum)
PageStampGetPageStamp(int pageNum)
RandomAccessFileOrArrayGetReaderFile(PdfReader reader)
PdfContentByteGetUnderContent(int pageNum)
voidInsertPage(int pageNumber, Rectangle mediabox)
boolIsAppend()
voidMakePackage(PdfCollection collection)
boolPartialFormFlattening(string name)
voidRegisterLayer(IPdfOCG layer)
voidReplacePage(PdfReader r, int pageImported, int pageReplaced)
voidSetDuration(int seconds, int page)
voidSetPageAction(PdfName actionType, PdfAction action, int page)
voidSetThumbnail(Image image, int page)
voidSetTransition(PdfTransition transition, int page)
voidSweepKids(PdfObject obj)
Public methods
Internal Static methods
ReturnsName
voidFindAllObjects(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
TypeNameDescription
PdfReaderreader
Streamos
charpdfVersion
boolappend

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
TypeNameDescription
IDictionary<string, string>moreInfo
Close [2/2]

Source code

protected virtual void Close(PdfIndirectReference info, int skipInfo)
Arguments
TypeNameDescription
PdfIndirectReferenceinfo
intskipInfo
ApplyRotation

Source code

internal void ApplyRotation(PdfDictionary pageN, ByteBuffer out_p)
Arguments
TypeNameDescription
PdfDictionarypageN
ByteBufferout_p
AlterContents

Source code

protected internal virtual void AlterContents()
AlterResources

Source code

internal void AlterResources(PageStamp ps)
Arguments
TypeNameDescription
PageStampps
GetNewObjectNumber

Source code

protected internal override int GetNewObjectNumber(PdfReader reader, int number, int generation)
Arguments
TypeNameDescription
PdfReaderreader
intnumber
intgeneration
GetReaderFile

Source code

internal override RandomAccessFileOrArray GetReaderFile(PdfReader reader)
Arguments
TypeNameDescription
PdfReaderreader
RegisterReader

Source code

public virtual void RegisterReader(PdfReader reader, bool openFile)
Arguments
TypeNameDescription
PdfReaderreader
boolopenFile
UnRegisterReader

Source code

public virtual void UnRegisterReader(PdfReader reader)
Arguments
TypeNameDescription
PdfReaderreader
FindAllObjects

Source code

internal static void FindAllObjects(PdfReader reader, PdfObject obj, IntHashtable hits)
Arguments
TypeNameDescription
PdfReaderreader
PdfObjectobj
IntHashtablehits
AddComments

Source code

public virtual void AddComments(FdfReader fdf)
Arguments
TypeNameDescription
FdfReaderfdf
GetPageStamp

Source code

internal PageStamp GetPageStamp(int pageNum)
Arguments
TypeNameDescription
intpageNum
GetUnderContent

Source code

internal PdfContentByte GetUnderContent(int pageNum)
Arguments
TypeNameDescription
intpageNum
GetOverContent

Source code

internal PdfContentByte GetOverContent(int pageNum)
Arguments
TypeNameDescription
intpageNum
CorrectAcroFieldPages

Source code

internal void CorrectAcroFieldPages(int page)
Arguments
TypeNameDescription
intpage
ReplacePage

Source code

internal void ReplacePage(PdfReader r, int pageImported, int pageReplaced)
Arguments
TypeNameDescription
PdfReaderr
intpageImported
intpageReplaced
InsertPage

Source code

internal void InsertPage(int pageNumber, Rectangle mediabox)
Arguments
TypeNameDescription
intpageNumber
Rectanglemediabox
GetAcroFields

Source code

internal AcroFields GetAcroFields()
PartialFormFlattening

Source code

internal bool PartialFormFlattening(string name)
Arguments
TypeNameDescription
stringname
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
TypeNameDescription
AffineTransformcurrentMatrix
doublefieldRotation
Rectanglebox
SweepKids

Source code

internal void SweepKids(PdfObject obj)
Arguments
TypeNameDescription
PdfObjectobj
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
TypeNameDescription
intpage
AddAnnotation [1/3]

Source code

public override void AddAnnotation(PdfAnnotation annot)
Arguments
TypeNameDescription
PdfAnnotationannot
AddDocumentField

Source code

internal void AddDocumentField(PdfIndirectReference ref_p)
Arguments
TypeNameDescription
PdfIndirectReferenceref_p
AddFieldResources

Source code

protected internal virtual void AddFieldResources()
ExpandFields

Source code

internal void ExpandFields(PdfFormField field, List<PdfAnnotation> allAnnots)
Arguments
TypeNameDescription
PdfFormFieldfield
List<PdfAnnotation>allAnnots
AddAnnotation [2/3]

Source code

internal void AddAnnotation(PdfAnnotation annot, PdfDictionary pageN)
Arguments
TypeNameDescription
PdfAnnotationannot
PdfDictionarypageN
AddAnnotation [3/3]

Source code

internal override void AddAnnotation(PdfAnnotation annot, int page)
Arguments
TypeNameDescription
PdfAnnotationannot
intpage
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
TypeNameDescription
PdfCollectioncollection
SetOutlines

Source code

protected internal virtual void SetOutlines()
AddViewerPreference

Source code

public override void AddViewerPreference(PdfName key, PdfObject value)
Arguments
TypeNameDescription
PdfNamekey
PdfObjectvalue
SetPageAction [1/2]

Source code

public override void SetPageAction(PdfName actionType, PdfAction action)
Arguments
TypeNameDescription
PdfNameactionType
PdfActionaction
SetPageAction [2/2]

Source code

internal void SetPageAction(PdfName actionType, PdfAction action, int page)
Arguments
TypeNameDescription
PdfNameactionType
PdfActionaction
intpage
SetDuration

Source code

internal void SetDuration(int seconds, int page)
Arguments
TypeNameDescription
intseconds
intpage
SetTransition

Source code

internal void SetTransition(PdfTransition transition, int page)
Arguments
TypeNameDescription
PdfTransitiontransition
intpage
MarkUsed [1/2]

Source code

public virtual void MarkUsed(PdfObject obj)
Arguments
TypeNameDescription
PdfObjectobj
MarkUsed [2/2]

Source code

protected internal virtual void MarkUsed(int num)
Arguments
TypeNameDescription
intnum
IsAppend

Source code

internal bool IsAppend()
SetAdditionalAction

Source code

public override void SetAdditionalAction(PdfName actionType, PdfAction action)
Arguments
TypeNameDescription
PdfNameactionType
PdfActionaction
SetOpenAction [1/2]

Source code

public override void SetOpenAction(PdfAction action)
Arguments
TypeNameDescription
PdfActionaction
SetOpenAction [2/2]

Source code

public override void SetOpenAction(string name)
Arguments
TypeNameDescription
stringname
SetThumbnail

Source code

internal void SetThumbnail(Image image, int page)
Arguments
TypeNameDescription
Imageimage
intpage
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
TypeNameDescription
IPdfOCGlayer
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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.