pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Nibali <rnib...@gmail.com>
Subject Re: NPE through NFE in preflight due to "questionable" header entry
Date Wed, 27 Jan 2016 22:53:14 GMT
Hi Tilman

On Wed, Jan 27, 2016 at 11:51 PM, Tilman Hausherr <THausherr@t-online.de>
wrote:

> Am 27.01.2016 um 18:48 schrieb Tilman Hausherr:
>
>> Am 27.01.2016 um 15:08 schrieb Roberto Nibali:
>>
>>>
>>>
>>> The PDF uploaded to http://www.filedropper.com/6biasebm seems to have a
>>> broken header section. It opens well with Preview, Adobe and others,
>>> however preflight repeatedly trips pretty badly with a NFE:
>>>
>>> log4j: Adding appender named [console] to category [root].
>>> 2016-01-27 14:52:38 DEBUG COSParser:1879 - Can't parse the header
>>> version.
>>> java.lang.NumberFormatException: For input string: "1.\"
>>>         at
>>> sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
>>>
>>
>> That's only in debugging that this is shown. The NFE is retrown as an
>> IOException and this should result in a normal preflight error.
>>
>> However I don't get this with your file. Instead I get this, which is
>> even worse:
>>
>> Exception in thread "main" java.lang.NullPointerException
>>     at
>> org.apache.xmpbox.xml.PdfaExtensionHelper.populatePDFAPropertyType(PdfaExtensionHelper.java:180)
>>
>
> This has been fixed, output is now several errors including
>
> 7.6 : Error on MetaData, Unknown property value type : Seq Text
>
>
Yep, it's fixed with your last commit. Just verified on my side.

Thanks and best regards

Roberto

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message