From: PIGEYRE Bastien [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 7:16 AM
To: Paulo Soares; [EMAIL PROTECTED]
Subject: RE: [iText-questions] problem with bookmarkOk 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 1)?
In resume, I would like to manage the bookmark for the GoTo action too.
Thanks,
Best Regards,
Bastien Pigeyre.
-----Message d'origine-----
De: Paulo Soares [SMTP:[EMAIL PROTECTED]
Date: jeudi 25 mars 2004 19:18
�: PIGEYRE Bastien; [EMAIL PROTECTED]
Objet: RE: [iText-questions] problem with bookmark
The /Dest you have would only be valid for the GoToR action and that's not the case here. You should have something like:
/Dest [12 0 R /FitH 354.250]
You have to explain a lot better what you want to do and how you are doing it.
Best Regards,
Paulo Soares
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of PIGEYRE Bastien
Sent: Thursday, March 25, 2004 4:00 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] problem with bookmarkHi,
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 64 0 R
/Dest [0 /FitH 354.250]
>>
[/PDF CODE]
Here, this bookmark links on the page 1 of my pdf.
I have other pdf whych define the bookmark 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 64 0 R
/Dest [1 /FitH 354.250]
>>
[/PDF CODE]
Here, this bookmark links to the page 1 of my pdf.
Acrobat reads both very well and the bookmarks are good too.
So I think, there is a value in my pdf whych say that the first page index is 0 or 1. I'm wrong?
But I don't find this value, can you help me please?
When I use Itext to copy a pdf to a new pdf if the first page of my pdf is coding by 0 (eg1), my bookmarks are false, and I have a shift of 1 page on all my bookmarks.
Thanks in advance,
Bastien PIGEYRE
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
- [iText-questions] problem with bookmark PIGEYRE Bastien
- RE: [iText-questions] problem with bookmark Paulo Soares
- RE: [iText-questions] problem with bookmark PIGEYRE Bastien
- RE: [iText-questions] problem with bookmark PIGEYRE Bastien
- RE: [iText-questions] problem with bookmark Paulo Soares
- [iText-questions] problem with bookmark PIGEYRE Bastien
- RE: [iText-questions] problem with bookmark Paulo Soares
- RE: [iText-questions] problem with bookmark PIGEYRE Bastien
- RE: [iText-questions] problem with bookmark Leonard Rosenthol
- Paulo Soares
