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.
| Method from com.lowagie.text.pdf.PdfCopyFields Detail: |
public void addDocument(PdfReader reader) throws DocumentException {
fc.addDocument(reader);
}
Concatenates a PDF document. |
public void addDocument(PdfReader reader,
List pagesToKeep) throws DocumentException {
fc.addDocument(reader, 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. |
public void addDocument(PdfReader reader,
String ranges) throws DocumentException {
fc.addDocument(reader, SequenceList.expand(ranges, reader.getNumberOfPages()));
}
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. |
public void addJavaScript(String js) {
fc.addJavaScript(js, !PdfEncodings.isPdfDocEncoding(js));
}
Adds JavaScript to the global document |
public void addViewerPreference(PdfName key,
PdfObject value) {
fc.addViewerPreference(key, value);
}
|
public void close() {
fc.close();
}
Closes the output document. |
public PdfWriter getWriter() {
return fc;
}
Gets the underlying PdfWriter. |
public boolean isFullCompression() {
return fc.isFullCompression();
}
Gets the 1.5 compression status. |
public void open() {
fc.openDoc();
}
Opens the document. This is usually not needed as addDocument() will do it
automatically. |
public void setEncryption(Certificate[] certs,
int[] permissions,
int encryptionType) throws DocumentException {
fc.setEncryption(certs, permissions, encryptionType);
}
|
public void setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean strength128Bits) throws DocumentException {
fc.setEncryption(userPassword, ownerPassword, permissions, strength128Bits ? PdfWriter.STANDARD_ENCRYPTION_128 : PdfWriter.STANDARD_ENCRYPTION_40);
}
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. |
public void setEncryption(boolean strength,
String userPassword,
String ownerPassword,
int permissions) throws DocumentException {
setEncryption(DocWriter.getISOBytes(userPassword), DocWriter.getISOBytes(ownerPassword), permissions, strength);
}
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. |
public void setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
int encryptionType) throws DocumentException {
fc.setEncryption(userPassword, ownerPassword, permissions, encryptionType);
}
|
public void setFullCompression() {
fc.setFullCompression();
}
|
public void setOutlines(List outlines) {
fc.setOutlines(outlines);
}
Sets the bookmarks. The list structure is defined in
SimpleBookmark#. |
public void setViewerPreferences(int preferences) {
fc.setViewerPreferences(preferences);
}
|