RE: [iText-questions] problem with bookmark

2004-03-26 Thread Leonard Rosenthol
At 02:15 AM 3/26/2004, PIGEYRE Bastien wrote: When I have a pdf with GoTo action, how I know the index of the first page of my document (0 or 1)? First page is ALWAYS the 0th index into the /Pages array... Leonard --

RE: [iText-questions] problem with bookmark

2004-03-26 Thread Paulo Soares
Title: RE: [iText-questions] problem with bookmark You must traverse the page tree to get the page references. The order in the page tree determines the page number. In the GoTo action you have the page reference that corresponds to some page number found before.   Best Regards, Paulo Soares

RE: [iText-questions] problem with bookmark

2004-03-25 Thread PIGEYRE Bastien
Title: RE: [iText-questions] problem with bookmark Ok Paulo I understand what you say. But in my case I have pdf wih GoTo only. So perhaps my question is not a Itext question but a pdf question. When I have a pdf with GoTo action, how I know the index of the first page of my document (0 or

RE: [iText-questions] problem with bookmark

2004-03-25 Thread Paulo Soares
oares From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of PIGEYRE BastienSent: Thursday, March 25, 2004 4:00 PMTo: [EMAIL PROTECTED]Subject: [iText-questions] problem with bookmark Hi, I'm working on the pdf bookmark. But I have a little problem.

[iText-questions] problem with bookmark

2004-03-25 Thread PIGEYRE Bastien
Title: problem with bookmark Hi, I'm working on the pdf bookmark. But I have a little problem. I have pdf whych have their bookmark defined like this: [PDF CODE] 65 0 obj <<     /Title(þÿ a b s t r a c t)     /Parent     63 0 R     /Next       66 0 R     /Prev

RE: [iText-questions] problem with bookmark

2003-12-23 Thread Paulo Soares
Title: RE: [iText-questions] problem with bookmark 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

RE: [iText-questions] problem with bookmark

2003-12-23 Thread PIGEYRE Bastien
Title: 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

RE: [iText-questions] problem with bookmark

2003-12-23 Thread PIGEYRE Bastien
Title: RE: [iText-questions] problem with bookmark ok thanks this looks like what I'm looking for:) but when I try it I have a bug during execution: this is my code:         PdfReader pdfReader = new PdfReader(myPdfDocuments[currIdx]);         List

RE: [iText-questions] problem with bookmark

2003-12-22 Thread Paulo Soares
Title: RE: [iText-questions] problem with bookmark See the class SimpleBookmark in the new iText version at itextpdf.sf.net. It has an export to xml capability. The bookmark list itself is documented and very easy to use in case you need to make other format. Best Regards, Paulo Soares

[iText-questions] problem with bookmark

2003-12-22 Thread PIGEYRE Bastien
Title: problem with bookmark Hello, I have a pdf file and I want to get the number of the page coresponding to each bookmark. eg: my first bookmark is    description my second is        drawing I want to now wich pages are in the descriptio bookmark and wich pages are in drawing bookma