You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2016/01/12 20:31:08 UTC
svn commit: r1724305 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
Author: tilman
Date: Tue Jan 12 19:31:07 2016
New Revision: 1724305
URL: http://svn.apache.org/viewvc?rev=1724305&view=rev
Log:
PDFBOX-3188: no need to check for encryption
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java?rev=1724305&r1=1724304&r2=1724305&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java Tue Jan 12 19:31:07 2016
@@ -246,14 +246,6 @@ public class PDFMergerUtility
{
throw new IOException("Error: destination PDF is closed.");
}
- if (destination.isEncrypted())
- {
- throw new IOException("Error: destination PDF is encrypted, can't append encrypted PDF documents.");
- }
- if (source.isEncrypted())
- {
- throw new IOException("Error: source PDF is encrypted, can't append encrypted PDF documents.");
- }
PDDocumentCatalog destCatalog = destination.getDocumentCatalog();
PDDocumentCatalog srcCatalog = source.getDocumentCatalog();