Skip to main content
Skip table of contents

PdfCopyFields

PdfCopyFields Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.PdfCopyFields[[PdfCopyFields]]
  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
iTextSharp.text.pdf.interfaces.IPdfViewerPreferences --> iTextSharp.text.pdf.PdfCopyFields
iTextSharp.text.pdf.interfaces.IPdfEncryptionSettings --> iTextSharp.text.pdf.PdfCopyFields

Members

Properties

Public properties
TypeNameMethods
boolFullCompressionget
IList<Dictionary<string, object>>Outlinesset
intViewerPreferencesset
PdfWriterWriterget

Methods

Public methods
ReturnsName
voidAddDocument(...)
voidAddJavaScript(string js)
voidAddViewerPreference(PdfName key, PdfObject value)
voidClose()
voidOpen()
voidSetEncryption(...)
voidSetFullCompression()

Details

Inheritance

Constructors

PdfCopyFields [1/2]

Source code

public PdfCopyFields(Stream os)
Arguments
TypeNameDescription
Streamos
PdfCopyFields [2/2]

Source code

public PdfCopyFields(Stream os, char pdfVersion)
Arguments
TypeNameDescription
Streamos
charpdfVersion

Methods

AddDocument [1/3]

Source code

public virtual void AddDocument(PdfReader reader)
Arguments
TypeNameDescription
PdfReaderreader
AddDocument [2/3]

Source code

public virtual void AddDocument(PdfReader reader, IList<int> pagesToKeep)
Arguments
TypeNameDescription
PdfReaderreader
IList<int>pagesToKeep
AddDocument [3/3]

Source code

public virtual void AddDocument(PdfReader reader, string ranges)
Arguments
TypeNameDescription
PdfReaderreader
stringranges
SetEncryption [1/4]

Source code

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

Source code

public virtual void SetEncryption(bool strength, string userPassword, string ownerPassword, int permissions)
Arguments
TypeNameDescription
boolstrength
stringuserPassword
stringownerPassword
intpermissions
Close

Source code

public virtual void Close()
Open

Source code

public virtual void Open()
AddJavaScript

Source code

public virtual void AddJavaScript(string js)
Arguments
TypeNameDescription
stringjs
SetFullCompression

Source code

public virtual void SetFullCompression()
SetEncryption [3/4]

Source code

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

Source code

public virtual void AddViewerPreference(PdfName key, PdfObject value)
Arguments
TypeNameDescription
PdfNamekey
PdfObjectvalue
SetEncryption [4/4]

Source code

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

Properties

Outlines
public virtual IList<Dictionary<string, object>> Outlines { set; }
Writer
public virtual PdfWriter Writer { get; }
FullCompression
public virtual bool FullCompression { get; }
ViewerPreferences
public virtual int ViewerPreferences { set; }

Generated with ModularDoc

JavaScript errors detected

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

If this problem persists, please contact our support.