I believe that if such a basic problem existed in iText many more would have
complained. Let's have another try. Load the pdf to a byte array and use
that byte array with the constructor "new PdfReader(byte[])". Make sure that
the pdf is really in the byte array. If that doesn't work it's probably
better to call an exorcist.
Paulo
----- Original Message -----
From: "peter_budo" <peter_budo@(protected)>
To: <itext-questions@(protected)>
Sent: Saturday, June 16, 2007 6:21 PM
Subject: Re: [iText-questions] PDF header signature not found
>
> I just re-compiled and run same code under Ubuntu and got same errors. I
> do
> have only 2 years of experience in Java, but I think there is an error in
> iText. Have go, laugh on me...
>
>
> Paulo Soares wrote:
>>
>> I don't have any more suggestions.
>>
>> Paulo
>>
>> ----- Original Message -----
>> From: "peter_budo" <peter_budo@(protected)>
>> To: <itext-questions@(protected)>
>> Sent: Friday, June 15, 2007 5:36 PM
>> Subject: Re: [iText-questions] PDF header signature not found
>>
>>
>>>
>>> I did small program to read that pdf document and save it as new
>>> document.
>>> Then I tried to run the code which I send it to you, but I got same
>>> error
>>> message.
>>> The copy looks same as original to me, I do not see any difference. So
>>> what
>>> now?
>>>
>>> Paulo Soares wrote:
>>>>
>>>> This is some environment related problem you have. Open the file with
>>>> RandomAccessFileOrArray and save it to other file using
>>>> FileOutputStream.
>>>> Look at what you get.
>>>>
>>>>
>>>> Paulo
>>>>
>>>> ----- Original Message -----
>>>> From: "peter_budo" <peter_budo@(protected)>
>>>> To: <itext-questions@(protected)>
>>>> Sent: Wednesday, June 13, 2007 10:33 AM
>>>> Subject: Re: [iText-questions] PDF header signature not found
>>>>
>>>>
>>>>>
>>>>> I made copy of the file from which I try to read the link details and
>>>>> I
>>>>> opened it with my Java IDE and also with WinHex, but I do not see
>>>>> anything
>>>>> before "%PDF-1." marker. Base on this I do not think there is any
>>>>> garbadge
>>>>> on the start. Or am I mistaken?
>>>>>
>>>>>
>>>>> Paulo Soares wrote:
>>>>>>
>>>>>> You must remove the garbage from the file up to the "%PDF-1." marker.
>>>>>> That's
>>>>>> before using iText.
>>>>>>
>>>>>> Paulo
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/