You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/10/16 21:44:33 UTC
[jira] [Created] (PDFBOX-2434) ClassCastException in
readVersionInTrailer
Tilman Hausherr created PDFBOX-2434:
---------------------------------------
Summary: ClassCastException in readVersionInTrailer
Key: PDFBOX-2434
URL: https://issues.apache.org/jira/browse/PDFBOX-2434
Project: PDFBox
Issue Type: Bug
Components: Parsing
Affects Versions: 1.8.7, 1.8.8, 2.0.0
Reporter: Tilman Hausherr
Assignee: Tilman Hausherr
Fix For: 1.8.8, 2.0.0
I get this exception with the attached file:
{code}
Exception in thread "main" java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSName
at org.apache.pdfbox.pdfparser.PDFParser.readVersionInTrailer(PDFParser.java:918)
{code}
The cause is this:
{code}
<<
/Type /Catalog
/PageLabels 68 0 R
/Version 1.39999
{code}
A version must be like this:
{code}
/Version /1.4
{code}
I'll fix this by ignoring the wrong version and put out a warning.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)