Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 3.0
-
Fix Version/s: 4.0
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:-
Description
The attached PDF cannot be opened. It says the file is not support and/or corrupt along with throwing the following exception:
FINE: Error opening document.
java.io.IOException
at org.icepdf.core.pobjects.Document.setInputStream(Document.java:465)
at org.icepdf.core.pobjects.Document.setFile(Document.java:204)
at org.icepdf.ri.common.SwingController.openDocument(SwingController.java:1269)
at org.icepdf.ri.common.SwingController.openFileInSomeViewer(SwingController.java:1237)
at org.icepdf.ri.common.SwingController.openFile(SwingController.java:1217)
at org.icepdf.ri.common.SwingController$6.run(SwingController.java:2848)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
FINE: Error opening document.
java.io.IOException
at org.icepdf.core.pobjects.Document.setInputStream(Document.java:465)
at org.icepdf.core.pobjects.Document.setFile(Document.java:204)
at org.icepdf.ri.common.SwingController.openDocument(SwingController.java:1269)
at org.icepdf.ri.common.SwingController.openFileInSomeViewer(SwingController.java:1237)
at org.icepdf.ri.common.SwingController.openFile(SwingController.java:1217)
at org.icepdf.ri.common.SwingController$6.run(SwingController.java:2848)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
The file in question uses a Crypt filter to encrypt the parts of the document content. Surprisingly this is the first crypt filter file that we have seen in the wild. At this time we currently don't support this encryption type. This bug falls into the feature request category.