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