The pdf reference says that the file can have 1024 bytes of garbage before and
after the pdf. If you expect more you'll have to trim yourself the file.
Paulo
> -----Original Message-----
> From: Gerrit Germis [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 07, 2008 11:40 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] itext 1.4.2 sporadic exceptions
>
> Hi Paulo,
>
> Thanks for the reply. It turns out that in some example PDF files I am
> using, there is an XML snippet at the bottom of the file (2259 bytes
> long), and iText tries to read "startxref" from the last 1024 bytes,
> but fails and therefore does a reader.rebuiltdXref(). Not sure if that
> XML snippet (some metadata about the document) at the end is legal.
> The PDF is received as such from our customers.
>
> Sincerely,
> Gerrit
>
> On Tue, Oct 7, 2008 at 11:07 AM, Paulo Soares
> <[EMAIL PROTECTED]> wrote:
> > Look at PdfReader.isRebuilt() to look for errors. To sign
> in append mode this must return false.
> >
> > Paulo
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php