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.
=20
Best Regards,
Paulo Soares
________________________________
From: PIGEYRE Bastien [mailto:bastien.pigeyre@...
Sent: Friday, March 26, 2004 7:16 AM
To: Paulo Soares; itext-questions@...
Subject: RE: [iText-questions] problem with bookmark
=09
=09
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 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:psoares@...]
Date: jeudi 25 mars 2004 19:18
=C0: PIGEYRE Bastien; itext-questions@...
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:
=20
/Dest [12 0 R /FitH 354.250]
=20
You have to explain a lot better what you want to do and how you are =
doing it.
=20
Best Regards,
Paulo Soares
_____=20
=09
From: itext-questions-admin@... =
[mailto:itext-questions-admin@...] On Behalf Of =
PIGEYRE Bastien
Sent: Thursday, March 25, 2004 4:00 PM
To: itext-questions@...
Subject: [iText-questions] problem with bookmark
=09
=09
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(=FE=FF 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(=FE=FF 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
|