[ https://issues.apache.org/jira/browse/PDFBOX-3188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent updated PDFBOX-3188: ---------------------------- Description: In the release notes of PDFBox 2.0.0 RC2 we can read that ([PDFBOX-1656]) PDFMergerUtility is able to merge encrypted files. I have some files that are protected against modification (users are able to open and print the file but the content is locked). I'm trying to merge those files into a new one but without success. 1. Adding source files. 2. Setting the destination filename. 3. Calling mergeDocuments(). Result is : Exception in thread "main" java.io.IOException: Error: source PDF is encrypted, can't append encrypted PDF documents. at org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:255) at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:201) Note : PDDocument.load() works if I need to print the files. was: In the release notes of PDFBox 2.0.0 RC2 we can read that ([PDFBOX-1656]) PDFMergerUtility is able to merge encrypted files. I have some files that are protected against modification (users are able to open and print the file but the content is locked). I'm trying to merge those files into a new one but without success. 1. Adding source files. 2. Setting the destination filename. 3. Calling mergeDocuments(). Result is : Exception in thread "main" java.io.IOException: Error: source PDF is encrypted, can't append encrypted PDF documents. Note : PDDocument.load() works if I need to print the files. > java.io.IOException: Error: source PDF is encrypted, can't append encrypted > PDF documents > ----------------------------------------------------------------------------------------- > > Key: PDFBOX-3188 > URL: https://issues.apache.org/jira/browse/PDFBOX-3188 > Project: PDFBox > Issue Type: Bug > Components: Utilities > Affects Versions: 2.0.0 > Environment: Windows 8.1 x64, JDK 7u80 32 bits, Netbeans 8.1, PDFBox > 2.0.0RC2 jar > Reporter: Vincent > Labels: merge > > In the release notes of PDFBox 2.0.0 RC2 we can read that ([PDFBOX-1656]) > PDFMergerUtility is able to merge encrypted files. I have some files that are > protected against modification (users are able to open and print the file but > the content is locked). I'm trying to merge those files into a new one but > without success. > 1. Adding source files. > 2. Setting the destination filename. > 3. Calling mergeDocuments(). > Result is : Exception in thread "main" java.io.IOException: Error: source PDF > is encrypted, can't append encrypted PDF documents. > at > org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:255) > at > org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:201) > Note : PDDocument.load() works if I need to print the files. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org