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" <[EMAIL PROTECTED]> > To: <itext-questions@lists.sourceforge.net> > 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" <[EMAIL PROTECTED]> >>> To: <itext-questions@lists.sourceforge.net> >>> 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > > -- View this message in context: http://www.nabble.com/PDF-header-signature-not-found-tf3907501.html#a11156248 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/