Details
Description
This report: http://www2.goldmansachs.com/our-firm/press/press-releases/current/pdfs/2010-q2-earnings.pdf
With this code:
public static String getTransformed(InputStream inputStream) {
PDDocument pdDocument = null;
String document = null;
try
catch (IOException e)
{ e.printStackTrace(); } finally {
if (pdDocument != null) {
try
catch (IOException e)
{ e.printStackTrace(); } }
}
return document;
}
returns:
17:01:15,609 [main] ERROR org.apache.pdfbox.filter.FlateFilter - Stop reading corrupt stream
null
java.io.IOException: Error: Expected an integer type, actual=''
at org.apache.pdfbox.pdfparser.BaseParser.readInt(BaseParser.java:1310)
at org.apache.pdfbox.pdfparser.PDFObjectStreamParser.parse(PDFObjectStreamParser.java:81)
at org.apache.pdfbox.cos.COSDocument.dereferenceObjectStreams(COSDocument.java:449)
at org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1112)
at org.apache.pdfbox.pdmodel.PDDocument.decrypt(PDDocument.java:591)
at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:246)
at org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:184)
in Foxit PDF this file was opened normally
Attachments
Attachments
Issue Links
- duplicates
-
PDFBOX-697 Error: Expected an integer type, actual='' -
- Closed