com.lowagie.text.pdf
public class PdfCopyForms extends Object implements PdfViewerPreferences, PdfEncryptionSettings
Since: 2.1.5
Field Summary | |
---|---|
PdfCopyFormsImp | fc The class with the actual implementations. |
Constructor Summary | |
---|---|
PdfCopyForms(OutputStream os)
Creates a new instance. |
Method Summary | |
---|---|
void | addDocument(PdfReader reader)
Concatenates a PDF document. |
void | addDocument(PdfReader reader, List pagesToKeep)
Concatenates a PDF document selecting the pages to keep. |
void | addDocument(PdfReader reader, String ranges)
Concatenates a PDF document selecting the pages to keep. |
void | addJavaScript(String js)
Adds JavaScript to the global document |
void | addViewerPreference(PdfName key, PdfObject value) |
void | close()
Closes the output document. |
void | copyDocumentFields(PdfReader reader)
Copies the form fields of this PDFDocument onto the PDF-Document which was added |
PdfWriter | getWriter() Gets the underlying PdfWriter. |
boolean | isFullCompression()
Gets the 1.5 compression status. |
void | open()
Opens the document. |
void | setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Sets the encryption options for this document. |
void | setEncryption(boolean strength, String userPassword, String ownerPassword, int permissions)
Sets the encryption options for this document. |
void | setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) |
void | setEncryption(Certificate[] certs, int[] permissions, int encryptionType) |
void | setFullCompression()
Sets the document's compression to the new 1.5 mode with object streams and xref
streams. |
void | setOutlines(List outlines)
Sets the bookmarks. |
void | setViewerPreferences(int preferences) |
Parameters: os the output stream
Throws: DocumentException on error
Parameters: reader the PDF document
Throws: DocumentException on error
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
Throws: DocumentException on error
Parameters: reader the PDF document ranges the comma separated ranges as described in SequenceList
Throws: DocumentException on error
Parameters: js the JavaScript
See Also: PdfViewerPreferences
Parameters: reader the PDF document
Throws: DocumentException on error
Returns: the underlying PdfWriter
Returns: true
if the 1.5 compression is on
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
Throws: DocumentException if the document is already open
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
Throws: DocumentException if the document is already open
See Also: (byte[], byte[], int, int)
If set before opening the document it will also set the pdf version to 1.5.
SimpleBookmark#
.Parameters: outlines the bookmarks or null
to remove any
See Also: PdfViewerPreferences