You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Jorge David Plasencia Hernandez <jd...@estudiantes.uci.cu> on 2012/02/09 05:08:05 UTC
read table of content without bookmarks
hi all, I have a pdf document that dont have bookmarks. But nevertheless, the document has several pages where the content is in form of index or table of contents. anyone knows how to navigate through that tree. or can only do that with bookmarks enabled. greetings.
"Lo que sabemos es una gota, lo que ignoramos un océano"
jdplasencia@estudiantes.uci.cu
Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com
Re: read table of content without bookmarks
Posted by Ilija Pavlic <il...@gmail.com>.
The best information I can give you is to look at PDOutlineItem class
(http://pdfbox.apache.org/apidocs/org/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem.html).
Perhaps it can help you. If you manage to solve your problem, please
post your solution.
BR,
Ilija.
On Thu, Feb 9, 2012 at 7:42 PM, Jorge David Plasencia Hernandez
<jd...@estudiantes.uci.cu> wrote:
> yes the table of content is clickable. when i click in one subject, the pdf showme the content of that subject. And i whant to parse that table to extract the text in the same order that appear in the table of content, but i don't have idea of how do that. help please is urgent.
>
> ----- Mensaje original -----
> De: "Ilija Pavlic" <il...@gmail.com>
> Para: users@pdfbox.apache.org
> Enviados: Jueves, 9 de Febrero 2012 4:21:52
> Asunto: Re: read table of content without bookmarks
>
> Hi Jorge,
>
> Are the table of contents "clickable"? If not, then your only option
> is parsing the contents of the table of contents to extract page
> numbers.
>
> BR,
> Ilija.
>
> On Thu, Feb 9, 2012 at 5:08 AM, Jorge David Plasencia Hernandez
> <jd...@estudiantes.uci.cu> wrote:
>>
>> hi all, I have a pdf document that dont have bookmarks. But nevertheless, the document has several pages where the content is in form of index or table of contents. anyone knows how to navigate through that tree. or can only do that with bookmarks enabled. greetings.
>>
>>
>> "Lo que sabemos es una gota, lo que ignoramos un océano"
>> jdplasencia@estudiantes.uci.cu
>>
>>
>>
>> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
>> http://www.antiterroristas.cu
>> http://justiciaparaloscinco.wordpress.com
>
>
> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
> http://www.antiterroristas.cu
> http://justiciaparaloscinco.wordpress.com
>
>
> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
> http://www.antiterroristas.cu
> http://justiciaparaloscinco.wordpress.com
Re: read table of content without bookmarks
Posted by Jorge David Plasencia Hernandez <jd...@estudiantes.uci.cu>.
yes the table of content is clickable. when i click in one subject, the pdf showme the content of that subject. And i whant to parse that table to extract the text in the same order that appear in the table of content, but i don't have idea of how do that. help please is urgent.
----- Mensaje original -----
De: "Ilija Pavlic" <il...@gmail.com>
Para: users@pdfbox.apache.org
Enviados: Jueves, 9 de Febrero 2012 4:21:52
Asunto: Re: read table of content without bookmarks
Hi Jorge,
Are the table of contents "clickable"? If not, then your only option
is parsing the contents of the table of contents to extract page
numbers.
BR,
Ilija.
On Thu, Feb 9, 2012 at 5:08 AM, Jorge David Plasencia Hernandez
<jd...@estudiantes.uci.cu> wrote:
>
> hi all, I have a pdf document that dont have bookmarks. But nevertheless, the document has several pages where the content is in form of index or table of contents. anyone knows how to navigate through that tree. or can only do that with bookmarks enabled. greetings.
>
>
> "Lo que sabemos es una gota, lo que ignoramos un océano"
> jdplasencia@estudiantes.uci.cu
>
>
>
> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
> http://www.antiterroristas.cu
> http://justiciaparaloscinco.wordpress.com
Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com
Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com
Re: read table of content without bookmarks
Posted by Ilija Pavlic <il...@gmail.com>.
Hi Jorge,
Are the table of contents "clickable"? If not, then your only option
is parsing the contents of the table of contents to extract page
numbers.
BR,
Ilija.
On Thu, Feb 9, 2012 at 5:08 AM, Jorge David Plasencia Hernandez
<jd...@estudiantes.uci.cu> wrote:
>
> hi all, I have a pdf document that dont have bookmarks. But nevertheless, the document has several pages where the content is in form of index or table of contents. anyone knows how to navigate through that tree. or can only do that with bookmarks enabled. greetings.
>
>
> "Lo que sabemos es una gota, lo que ignoramos un océano"
> jdplasencia@estudiantes.uci.cu
>
>
>
> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
> http://www.antiterroristas.cu
> http://justiciaparaloscinco.wordpress.com