[ 
https://issues.apache.org/jira/browse/PDFBOX-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13935702#comment-13935702
 ] 

Tilman Hausherr commented on PDFBOX-1969:
-----------------------------------------

I first isolated the "JPEG only" stuff to deal with shorter code.

I then applied a similar change than I did in CCITT. The test now works. An 
image-to-pdf test I did (temporarly modified the example to use that method) 
also worked. What I couldn't test is whether the alpha thing works, i.e. 
whether it is possible to put a semi transparent jpeg in a PDF.

This was done in rev 1577734 and rev 1577735. John, please review this, if you 
want.

> 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