|
| PdfCopyFields (Stream os) |
|
| PdfCopyFields (Stream os, char pdfVersion) |
|
void | AddDocument (PdfReader reader) |
|
void | AddDocument (PdfReader reader, ArrayList pagesToKeep) |
|
void | AddDocument (PdfReader reader, String ranges) |
|
void | SetEncryption (byte[] userPassword, byte[] ownerPassword, int permissions, bool strength128Bits) |
|
void | SetEncryption (bool strength, String userPassword, String ownerPassword, int permissions) |
|
void | Close () |
|
void | Open () |
|
void | AddJavaScript (String js) |
|
void | SetFullCompression () |
|
void | SetEncryption (byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) |
|
void | AddViewerPreference (PdfName key, PdfObject value) |
|
void | SetEncryption (X509Certificate[] certs, int[] permissions, int encryptionType) |
|
Concatenates PDF documents including form fields. The rules for the form field concatenation are the same as in Acrobat. All the documents are kept in memory unlike PdfCopy.
- Author
- Paulo Soares (psoar.nosp@m.es@c.nosp@m.onsis.nosp@m.te.p.nosp@m.t)
◆ PdfCopyFields() [1/2]
iTextSharp.text.pdf.PdfCopyFields.PdfCopyFields |
( |
Stream |
os | ) |
|
Creates a new instance.
- Parameters
-
- Exceptions
-
◆ PdfCopyFields() [2/2]
iTextSharp.text.pdf.PdfCopyFields.PdfCopyFields |
( |
Stream |
os, |
|
|
char |
pdfVersion |
|
) |
| |
Creates a new instance.
- Parameters
-
os | the output stream |
pdfVersion | the pdf version the output will have |
- Exceptions
-
◆ AddDocument() [1/3]
void iTextSharp.text.pdf.PdfCopyFields.AddDocument |
( |
PdfReader |
reader | ) |
|
Concatenates a PDF document.
- Parameters
-
- Exceptions
-
◆ AddDocument() [2/3]
void iTextSharp.text.pdf.PdfCopyFields.AddDocument |
( |
PdfReader |
reader, |
|
|
ArrayList |
pagesToKeep |
|
) |
| |
Concatenates a PDF document selecting the pages to keep. The pages are described as a List
of Integer
. The page ordering can be changed but no page repetitions are allowed.
- Parameters
-
reader | the PDF document |
pagesToKeep | the pages to keep |
- Exceptions
-
◆ AddDocument() [3/3]
void iTextSharp.text.pdf.PdfCopyFields.AddDocument |
( |
PdfReader |
reader, |
|
|
String |
ranges |
|
) |
| |
Concatenates a PDF document selecting the pages to keep. The pages are described as ranges. The page ordering can be changed but no page repetitions are allowed.
- Parameters
-
reader | the PDF document |
ranges | the comma separated ranges as described in SequenceList |
- Exceptions
-
◆ AddJavaScript()
void iTextSharp.text.pdf.PdfCopyFields.AddJavaScript |
( |
String |
js | ) |
|
Adds JavaScript to the global document
- Parameters
-
◆ AddViewerPreference()
void iTextSharp.text.pdf.PdfCopyFields.AddViewerPreference |
( |
PdfName |
key, |
|
|
PdfObject |
value |
|
) |
| |
◆ Close()
void iTextSharp.text.pdf.PdfCopyFields.Close |
( |
| ) |
|
Closes the output document.
◆ Open()
void iTextSharp.text.pdf.PdfCopyFields.Open |
( |
| ) |
|
Opens the document. This is usually not needed as AddDocument() will do it automatically.
◆ SetEncryption() [1/4]
void iTextSharp.text.pdf.PdfCopyFields.SetEncryption |
( |
bool |
strength, |
|
|
String |
userPassword, |
|
|
String |
ownerPassword, |
|
|
int |
permissions |
|
) |
| |
Sets the encryption options for this document. The userPassword and the ownerPassword can be null or have zero length. In this case the ownerPassword is replaced by a random string. The open permissions for the document can be AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations, AllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting. The permissions can be combined by ORing them.
- Parameters
-
strength | true for 128 bit key length. false for 40 bit key length |
userPassword | the user password. Can be null or empty |
ownerPassword | the owner password. Can be null or empty |
permissions | the user permissions |
- Exceptions
-
◆ SetEncryption() [2/4]
void iTextSharp.text.pdf.PdfCopyFields.SetEncryption |
( |
byte[] |
userPassword, |
|
|
byte[] |
ownerPassword, |
|
|
int |
permissions, |
|
|
bool |
strength128Bits |
|
) |
| |
Sets the encryption options for this document. The userPassword and the ownerPassword can be null or have zero length. In this case the ownerPassword is replaced by a random string. The open permissions for the document can be AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations, AllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting. The permissions can be combined by ORing them.
- Parameters
-
userPassword | the user password. Can be null or empty |
ownerPassword | the owner password. Can be null or empty |
permissions | the user permissions |
strength128Bits | true for 128 bit key length, false for 40 bit key length |
- Exceptions
-
◆ SetEncryption() [3/4]
void iTextSharp.text.pdf.PdfCopyFields.SetEncryption |
( |
byte[] |
userPassword, |
|
|
byte[] |
ownerPassword, |
|
|
int |
permissions, |
|
|
int |
encryptionType |
|
) |
| |
◆ SetEncryption() [4/4]
void iTextSharp.text.pdf.PdfCopyFields.SetEncryption |
( |
X509Certificate[] |
certs, |
|
|
int[] |
permissions, |
|
|
int |
encryptionType |
|
) |
| |
◆ SetFullCompression()
void iTextSharp.text.pdf.PdfCopyFields.SetFullCompression |
( |
| ) |
|
Sets the document's compression to the new 1.5 mode with object streams and xref streams. It can be set at any time but once set it can't be unset.
If set before opening the document it will also set the pdf version to 1.5.
◆ FullCompression
bool iTextSharp.text.pdf.PdfCopyFields.FullCompression |
|
get |
Gets the 1.5 compression status.
- Returns
true
if the 1.5 compression is on
◆ Outlines
ArrayList iTextSharp.text.pdf.PdfCopyFields.Outlines |
|
set |
Sets the bookmarks. The list structure is defined in SimpleBookmark.
- Parameters
-
outlines | the bookmarks or null to remove any |
◆ ViewerPreferences
int iTextSharp.text.pdf.PdfCopyFields.ViewerPreferences |
|
set |
- See also
- com.lowagie.text.pdf.interfaces.PdfViewerPreferences::setViewerPreferences(int)
◆ Writer
PdfWriter iTextSharp.text.pdf.PdfCopyFields.Writer |
|
get |
The documentation for this class was generated from the following file: