[ 
https://issues.apache.org/jira/browse/PDFBOX-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr reopened PDFBOX-1969:
-------------------------------------


While writing the test for the CCITTFactory (PDFBOX-1983), I thought I'd write 
a test for this class as well, before noticing that there was already a test in 
the example package.

The test for createFromImage() failed with the now familiar "Stream was not 
read" exception. I'll correct that one this weekend unless someone else does it 
first.

I remember that someone said on the dev list that the signature images didn't 
appear. This might be caused by this bug.

In the meantime, I have committed a first version of the test in rev 1577622, 
with only one of two tests active. 

> JPEGFactory bug
> ---------------
>
>                 Key: PDFBOX-1969
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1969
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Steven Burg
>
> Attempted to run the RubberStampWithImage sample and received the following 
> errors:
> Exception in thread "main" java.lang.NullPointerException
>    at 
> org.apache.pdfbox.pdmodel.graphics.image.JPEGFactory.createFromStream(JPEGFactory.java:72)
>    at 
> org.apache.pdfbox.examples.pdmodel.RubberStampWithImage.doIt(RubberStampWithImage.java:93)
>    at 
> org.apache.pdfbox.examples.pdmodel.RubberStampWithImage.main(RubberStampWithImage.java:185)
> This happens with any jog I tested with.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to