That code would be correct for a GOTOR but not for a GOTO action as in this case. I suspect the pdf is broken.
Best Regards,
Paulo Soares
-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of PIGEYRE Bastien
Sent: Tuesday, December 23, 2003 10:02
To: [EMAIL PROTECTED]
Subject: RE: [iText-questions] problem with bookmark
I found a problem in your source code in the method bookmarkDepth():
������� you try to cast a PdfNumber into a PdfIndirectReference. or this is not possible.
���� //s.append(pages.get(((PdfIndirectReference)arr.get(0)).getNumber()));
������� �������
������� So I replace your code by this one and it looks like to done what we want.
������� ������� PdfNumber interm1 = (PdfNumber)arr.get(0);
������� ������� s.append(interm1.intValue());
What do you mean about my solution? I'm wrong o not?
thanks a lot:)
bye bastien.
