pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: RubberStampWithImage sample
Date Thu, 06 Mar 2014 16:54:50 GMT
Sorry about that - can anyone else help him? I'm not sure if it is a bug 
or a user problem.

Steven: if you get no reaction, try changing the title. People possibly 
ignore the thread thinking that I handled this.

Tilman

Am 06.03.2014 15:35, schrieb Steven M Burg:
> Thanks, Tilman - I was able to download the updated sample code.  I 
> get a different error now, which I will consider progress!
>
> 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)
>
> Tried this with two different JPGs and a PNG file.
>
> Steve
>
>
>
>
> On 3/6/2014 1:50 AM, Tilman Hausherr wrote:
>> You can get the source code from svn, or from here:
>> https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/?sortby=date

>>
>>
>> Tilman
>>
>> Am 05.03.2014 23:30, schrieb Steven M Burg:
>>> Where can I find the updated 2.0 samples?
>>>
>>>
>>>
>>> On 3/5/2014 5:24 PM, Tilman Hausherr wrote:
>>>> Yes some names were changed. But these were changed in the example 
>>>> code as well.
>>>> Tilman
>>>>
>>>> Am 05.03.2014 23:02, schrieb Steven M Burg:
>>>>> The RubberStampWithImage sample will not work with the 2.0 version 
>>>>> - can't resolve:
>>>>> org.apache.pdfbox.pdmodel.graphics.xobject.PDJpeg
>>>>> org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectForm
>>>>> org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage
>>>>> org.apache.pdfbox.util.MapUtil
>>>>>
>>>>>
>>>>> Steve
>>>>>
>>>>>
>>>>>
>>>>> On 3/5/2014 1:13 AM, Tilman Hausherr wrote:
>>>>>> Ouch, I see the problem is different (after you told that it 
>>>>>> happens with every image), it is not because of the PDF but 
>>>>>> because of the image.
>>>>>>
>>>>>> The encoder wouldn't work either in 1.8. I haven't tested it with

>>>>>> 2.0.
>>>>>>
>>>>>> Before doing this, could you please convert that image to PNG and

>>>>>> try the same and tell what happens?
>>>>>>
>>>>>> Also try with the 2.0 version
>>>>>> https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.0-SNAPSHOT/

>>>>>>
>>>>>>
>>>>>> Tilman (sorry, very busy, so I don't test myself)
>>>>>>
>>>>>>
>>>>>>
>>>>>> Am 04.03.2014 23:03, schrieb Tilman Hausherr:
>>>>>>> Steven,
>>>>>>> If your file isn't confidential, could you please attach it to
>>>>>>> https://issues.apache.org/jira/browse/PDFBOX-52 ?
>>>>>>> If you don't want to register, send the file to tilman at snafu

>>>>>>> dot de.
>>>>>>> Tilman
>>>>>>>
>>>>>>> Am 04.03.2014 19:35, schrieb Steven M Burg:
>>>>>>>> How can the released version support JPEG files but not support

>>>>>>>> DCT? Isn't DCT the form of compression used in all JPGs?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3/4/2014 11:45 AM, Tilman Hausherr wrote:
>>>>>>>>> Am 04.03.2014 15:03, schrieb sketh24:
>>>>>>>>>> Mar 3, 2014 4:24:24 PM 
>>>>>>>>>> org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage

>>>>>>>>>> getColorSpace
>>>>>>>>>> INFO: About to return NULL from unhandled branch.
filter = 
>>>>>>>>>> COSName{DCTDecode}
>>>>>>>>>>
>>>>>>>>>> When opened in Acrobat, the resulting PDF file displays
the 
>>>>>>>>>> message: "An error exists on this page. Acrobat may
not 
>>>>>>>>>> display the page correctly."
>>>>>>>>>
>>>>>>>>> This looks like two problems:
>>>>>>>>> 1) Your file is broken
>>>>>>>>> 2) The released version does not support DCT.
>>>>>>>>> https://issues.apache.org/jira/browse/PDFBOX-52
>>>>>>>>> The unreleased 2.0 version does. You can get it with
svn.
>>>>>>>>> Tilman
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>


Mime
View raw message