Skip to main content
Skip table of contents

PdfStamper

PdfStamper Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.PdfStamper[[PdfStamper]]
  end
  subgraph iTextSharp.text.pdf.interfaces
  iTextSharp.text.pdf.interfaces.IPdfViewerPreferences[[IPdfViewerPreferences]]
  class iTextSharp.text.pdf.interfaces.IPdfViewerPreferences interfaceStyle;
  iTextSharp.text.pdf.interfaces.IPdfEncryptionSettings[[IPdfEncryptionSettings]]
  class iTextSharp.text.pdf.interfaces.IPdfEncryptionSettings interfaceStyle;
  end
  subgraph System
System.IDisposable[[IDisposable]]
  end
iTextSharp.text.pdf.interfaces.IPdfViewerPreferences --> iTextSharp.text.pdf.PdfStamper
iTextSharp.text.pdf.interfaces.IPdfEncryptionSettings --> iTextSharp.text.pdf.PdfStamper
System.IDisposable --> iTextSharp.text.pdf.PdfStamper

Members

Properties

Public properties

Methods

Public methods
ReturnsName
voidAddAnnotation(PdfAnnotation annot, int page)
voidAddComments(FdfReader fdf)
voidAddFileAttachment(...)
voidAddJavaScript(string name, string js)
PdfFormFieldAddSignature(string name, int page, float llx, float lly, float urx, float ury)
voidAddViewerPreference(PdfName key, PdfObject value)
voidClose()
voidCreateXmpMetadata()
voidDispose()
PdfImportedPageGetImportedPage(PdfReader reader, int pageNumber)
PdfContentByteGetOverContent(int pageNum)
Dictionary<string, PdfLayer>GetPdfLayers()
PdfContentByteGetUnderContent(int pageNum)
voidInsertPage(int pageNumber, Rectangle mediabox)
voidMakePackage(...)
voidMarkUsed(PdfObject obj)
boolPartialFormFlattening(string name)
voidReplacePage(PdfReader r, int pageImported, int pageReplaced)
voidSetDuration(int seconds, int page)
voidSetEncryption(...)
voidSetFullCompression()
voidSetPageAction(PdfName actionType, PdfAction action, int page)
voidSetThumbnail(Image image, int page)
voidSetTransition(PdfTransition transition, int page)
Internal methods
ReturnsName
voidMergeVerification()
Public Static methods

Details

Inheritance

Constructors

PdfStamper [1/4]

Source code

public PdfStamper(PdfReader reader, Stream os)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
PdfStamper [2/4]

Source code

public PdfStamper(PdfReader reader, Stream os, char pdfVersion)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
charpdfVersion
PdfStamper [3/4]

Source code

public PdfStamper(PdfReader reader, Stream os, char pdfVersion, bool append)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
charpdfVersion
boolappend
PdfStamper [4/4]

Source code

protected PdfStamper()

Methods

ReplacePage

Source code

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

Source code

public virtual void InsertPage(int pageNumber, Rectangle mediabox)
Arguments
TypeNameDescription
intpageNumber
Rectanglemediabox
Close

Source code

public virtual void Close()
GetUnderContent

Source code

public virtual PdfContentByte GetUnderContent(int pageNum)
Arguments
TypeNameDescription
intpageNum
GetOverContent

Source code

public virtual PdfContentByte GetOverContent(int pageNum)
Arguments
TypeNameDescription
intpageNum
SetEncryption [1/5]

Source code

public virtual void SetEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, bool strength128Bits)
Arguments
TypeNameDescription
byte``[]userPassword
byte``[]ownerPassword
intpermissions
boolstrength128Bits
SetEncryption [2/5]

Source code

public virtual void SetEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType)
Arguments
TypeNameDescription
byte``[]userPassword
byte``[]ownerPassword
intpermissions
intencryptionType
SetEncryption [3/5]

Source code

public virtual void SetEncryption(bool strength, string userPassword, string ownerPassword, int permissions)
Arguments
TypeNameDescription
boolstrength
stringuserPassword
stringownerPassword
intpermissions
SetEncryption [4/5]

Source code

public virtual void SetEncryption(int encryptionType, string userPassword, string ownerPassword, int permissions)
Arguments
TypeNameDescription
intencryptionType
stringuserPassword
stringownerPassword
intpermissions
SetEncryption [5/5]

Source code

public virtual void SetEncryption(X509Certificate[] certs, int[] permissions, int encryptionType)
Arguments
TypeNameDescription
X509Certificate``[]certs
int``[]permissions
intencryptionType
GetImportedPage

Source code

public virtual PdfImportedPage GetImportedPage(PdfReader reader, int pageNumber)
Arguments
TypeNameDescription
PdfReaderreader
intpageNumber
AddAnnotation

Source code

public virtual void AddAnnotation(PdfAnnotation annot, int page)
Arguments
TypeNameDescription
PdfAnnotationannot
intpage
AddSignature

Source code

public virtual PdfFormField AddSignature(string name, int page, float llx, float lly, float urx, float ury)
Arguments
TypeNameDescription
stringname
intpage
floatllx
floatlly
floaturx
floatury
AddComments

Source code

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

Source code

public virtual void SetThumbnail(Image image, int page)
Arguments
TypeNameDescription
Imageimage
intpage
PartialFormFlattening

Source code

public virtual bool PartialFormFlattening(string name)
Arguments
TypeNameDescription
stringname
AddJavaScript

Source code

public virtual void AddJavaScript(string name, string js)
Arguments
TypeNameDescription
stringname
stringjs
AddFileAttachment [1/2]

Source code

public virtual void AddFileAttachment(string description, byte[] fileStore, string file, string fileDisplay)
Arguments
TypeNameDescription
stringdescription
byte``[]fileStore
stringfile
stringfileDisplay
AddFileAttachment [2/2]

Source code

public virtual void AddFileAttachment(string description, PdfFileSpecification fs)
Arguments
TypeNameDescription
stringdescription
PdfFileSpecificationfs
MakePackage [1/2]

Source code

public virtual void MakePackage(PdfName initialView)
Arguments
TypeNameDescription
PdfNameinitialView
MakePackage [2/2]

Source code

public virtual void MakePackage(PdfCollection collection)
Arguments
TypeNameDescription
PdfCollectioncollection
AddViewerPreference

Source code

public virtual void AddViewerPreference(PdfName key, PdfObject value)
Arguments
TypeNameDescription
PdfNamekey
PdfObjectvalue
CreateXmpMetadata

Source code

public virtual void CreateXmpMetadata()
SetFullCompression

Source code

public virtual void SetFullCompression()
SetPageAction

Source code

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

Source code

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

Source code

public virtual void SetTransition(PdfTransition transition, int page)
Arguments
TypeNameDescription
PdfTransitiontransition
intpage
CreateSignature [1/3]

Source code

public static PdfStamper CreateSignature(PdfReader reader, Stream os, char pdfVersion, string tempFile, bool append)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
charpdfVersion
stringtempFile
boolappend
CreateSignature [2/3]

Source code

public static PdfStamper CreateSignature(PdfReader reader, Stream os, char pdfVersion)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
charpdfVersion
CreateSignature [3/3]

Source code

public static PdfStamper CreateSignature(PdfReader reader, Stream os, char pdfVersion, string tempFile)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
charpdfVersion
stringtempFile
createXmlSignature

Source code

public static PdfStamper createXmlSignature(PdfReader reader, Stream os)
Arguments
TypeNameDescription
PdfReaderreader
Streamos
GetPdfLayers

Source code

public virtual Dictionary<string, PdfLayer> GetPdfLayers()
Dispose

Source code

public virtual void Dispose()
MarkUsed

Source code

public virtual void MarkUsed(PdfObject obj)
Arguments
TypeNameDescription
PdfObjectobj
MergeVerification

Source code

internal void MergeVerification()

Properties

MoreInfo
public virtual IDictionary<string, string> MoreInfo { get; set; }
SignatureAppearance
public virtual PdfSignatureAppearance SignatureAppearance { get; }
XmlSignatureAppearance
public virtual XmlSignatureAppearance XmlSignatureAppearance { get; }
RotateContents
public virtual bool RotateContents { get; set; }
Writer
public virtual PdfWriter Writer { get; }
Reader
public virtual PdfReader Reader { get; }
AcroFields
public virtual AcroFields AcroFields { get; }
FormFlattening
public virtual bool FormFlattening { set; }
FreeTextFlattening
public virtual bool FreeTextFlattening { set; }
AnnotationFlattening
public virtual bool AnnotationFlattening { set; }
Outlines
public virtual IList<Dictionary<string, object>> Outlines { set; }
JavaScript
public virtual string JavaScript { set; }
ViewerPreferences
public virtual int ViewerPreferences { set; }
XmpMetadata
public virtual byte XmpMetadata { set; }
XmpWriter
public virtual XmpWriter XmpWriter { get; }
FullCompression
public virtual bool FullCompression { get; }
LtvVerification
public virtual LtvVerification LtvVerification { 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.