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
Returns | Name |
---|
void | AddAnnotation (PdfAnnotation annot, int page) |
void | AddComments (FdfReader fdf) |
void | AddFileAttachment (... ) |
void | AddJavaScript (string name, string js) |
PdfFormField | AddSignature (string name, int page, float llx, float lly, float urx, float ury) |
void | AddViewerPreference (PdfName key, PdfObject value) |
void | Close () |
void | CreateXmpMetadata () |
void | Dispose () |
PdfImportedPage | GetImportedPage (PdfReader reader, int pageNumber) |
PdfContentByte | GetOverContent (int pageNum) |
Dictionary <string , PdfLayer > | GetPdfLayers () |
PdfContentByte | GetUnderContent (int pageNum) |
void | InsertPage (int pageNumber, Rectangle mediabox) |
void | MakePackage (... ) |
void | MarkUsed (PdfObject obj) |
bool | PartialFormFlattening (string name) |
void | ReplacePage (PdfReader r, int pageImported, int pageReplaced) |
void | SetDuration (int seconds, int page) |
void | SetEncryption (... ) |
void | SetFullCompression () |
void | SetPageAction (PdfName actionType, PdfAction action, int page) |
void | SetThumbnail (Image image, int page) |
void | SetTransition (PdfTransition transition, int page) |
Internal methods
Public Static methods
Details
Inheritance
Constructors
PdfStamper [1/4]
Source code
public PdfStamper(PdfReader reader, Stream os)
Arguments
PdfStamper [2/4]
Source code
public PdfStamper(PdfReader reader, Stream os, char pdfVersion)
Arguments
Type | Name | Description |
---|
PdfReader | reader | |
Stream | os | |
char | pdfVersion | |
PdfStamper [3/4]
Source code
public PdfStamper(PdfReader reader, Stream os, char pdfVersion, bool append)
Arguments
Type | Name | Description |
---|
PdfReader | reader | |
Stream | os | |
char | pdfVersion | |
bool | append | |
PdfStamper [4/4]
Source code
protected PdfStamper()
Methods
ReplacePage
Source code
public virtual void ReplacePage(PdfReader r, int pageImported, int pageReplaced)
Arguments
Type | Name | Description |
---|
PdfReader | r | |
int | pageImported | |
int | pageReplaced | |
InsertPage
Source code
public virtual void InsertPage(int pageNumber, Rectangle mediabox)
Arguments
Type | Name | Description |
---|
int | pageNumber | |
Rectangle | mediabox | |
Close
Source code
public virtual void Close()
GetUnderContent
Source code
public virtual PdfContentByte GetUnderContent(int pageNum)
Arguments
Type | Name | Description |
---|
int | pageNum | |
GetOverContent
Source code
public virtual PdfContentByte GetOverContent(int pageNum)
Arguments
Type | Name | Description |
---|
int | pageNum | |
SetEncryption [1/5]
Source code
public virtual void SetEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, bool strength128Bits)
Arguments
Type | Name | Description |
---|
byte``[] | userPassword | |
byte``[] | ownerPassword | |
int | permissions | |
bool | strength128Bits | |
SetEncryption [2/5]
Source code
public virtual void SetEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType)
Arguments
Type | Name | Description |
---|
byte``[] | userPassword | |
byte``[] | ownerPassword | |
int | permissions | |
int | encryptionType | |
SetEncryption [3/5]
Source code
public virtual void SetEncryption(bool strength, string userPassword, string ownerPassword, int permissions)
Arguments
Type | Name | Description |
---|
bool | strength | |
string | userPassword | |
string | ownerPassword | |
int | permissions | |
SetEncryption [4/5]
Source code
public virtual void SetEncryption(int encryptionType, string userPassword, string ownerPassword, int permissions)
Arguments
Type | Name | Description |
---|
int | encryptionType | |
string | userPassword | |
string | ownerPassword | |
int | permissions | |
SetEncryption [5/5]
Source code
public virtual void SetEncryption(X509Certificate[] certs, int[] permissions, int encryptionType)
Arguments
Type | Name | Description |
---|
X509Certificate``[] | certs | |
int``[] | permissions | |
int | encryptionType | |
GetImportedPage
Source code
public virtual PdfImportedPage GetImportedPage(PdfReader reader, int pageNumber)
Arguments
Type | Name | Description |
---|
PdfReader | reader | |
int | pageNumber | |
AddAnnotation
Source code
public virtual void AddAnnotation(PdfAnnotation annot, int page)
Arguments
AddSignature
Source code
public virtual PdfFormField AddSignature(string name, int page, float llx, float lly, float urx, float ury)
Arguments
Type | Name | Description |
---|
string | name | |
int | page | |
float | llx | |
float | lly | |
float | urx | |
float | ury | |
Source code
public virtual void AddComments(FdfReader fdf)
Arguments
SetThumbnail
Source code
public virtual void SetThumbnail(Image image, int page)
Arguments
Type | Name | Description |
---|
Image | image | |
int | page | |
Source code
public virtual bool PartialFormFlattening(string name)
Arguments
Type | Name | Description |
---|
string | name | |
AddJavaScript
Source code
public virtual void AddJavaScript(string name, string js)
Arguments
Type | Name | Description |
---|
string | name | |
string | js | |
AddFileAttachment [1/2]
Source code
public virtual void AddFileAttachment(string description, byte[] fileStore, string file, string fileDisplay)
Arguments
Type | Name | Description |
---|
string | description | |
byte``[] | fileStore | |
string | file | |
string | fileDisplay | |
AddFileAttachment [2/2]
Source code
public virtual void AddFileAttachment(string description, PdfFileSpecification fs)
Arguments
MakePackage [1/2]
Source code
public virtual void MakePackage(PdfName initialView)
Arguments
Type | Name | Description |
---|
PdfName | initialView | |
MakePackage [2/2]
Source code
public virtual void MakePackage(PdfCollection collection)
Arguments
AddViewerPreference
Source code
public virtual void AddViewerPreference(PdfName key, PdfObject value)
Arguments
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
SetDuration
Source code
public virtual void SetDuration(int seconds, int page)
Arguments
Type | Name | Description |
---|
int | seconds | |
int | page | |
SetTransition
Source code
public virtual void SetTransition(PdfTransition transition, int page)
Arguments
CreateSignature [1/3]
Source code
public static PdfStamper CreateSignature(PdfReader reader, Stream os, char pdfVersion, string tempFile, bool append)
Arguments
Type | Name | Description |
---|
PdfReader | reader | |
Stream | os | |
char | pdfVersion | |
string | tempFile | |
bool | append | |
CreateSignature [2/3]
Source code
public static PdfStamper CreateSignature(PdfReader reader, Stream os, char pdfVersion)
Arguments
Type | Name | Description |
---|
PdfReader | reader | |
Stream | os | |
char | pdfVersion | |
CreateSignature [3/3]
Source code
public static PdfStamper CreateSignature(PdfReader reader, Stream os, char pdfVersion, string tempFile)
Arguments
Type | Name | Description |
---|
PdfReader | reader | |
Stream | os | |
char | pdfVersion | |
string | tempFile | |
createXmlSignature
Source code
public static PdfStamper createXmlSignature(PdfReader reader, Stream os)
Arguments
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
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; }
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; }
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