Results 1 to 4 of 4
  1. #1
    sid.thumma is offline Newbies
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Default Extract bookmarks from pdf file using Java

    Hey Guys,

    Is there a way(by writing code..not using itext or something similar) to extract the bookmarks from a PDF file.

    I am trying to create a table of contents in a webpage and the chapters will be links and when clicked on they will go to that page(which are bookmarked) in the PDF.

    Thanks a lot!!
    Sid

  2. #2
    Toll's Avatar
    Toll is offline Senior Member
    Join Date
    May 2011
    Location
    Sweden
    Posts
    384
    Rep Power
    4

    Default

    Getting the bookmarks from a PDF would probably be possible, since they must be part of the file. Have a look at PDF Reference and Adobe Extensions to the PDF Specification | Adobe Developer Connection to see if you can find any docs about how PDF looks there. Whether or not you can directly link to a bookmark from a webpage is an entirely different question though, and not really Java-related.

  3. #3
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default

    Apache provides a library to manipulate PDF documents called PDFBox. See Apache PDFBox - PDFBox - PDF Bookmarks for working with bookmarks with this library.

  4. #4
    sid.thumma is offline Newbies
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Read Bookmarks from a word document using apache POI
    By anuskesh in forum Advanced Java
    Replies: 0
    Last Post: 07-28-2010, 04:36 AM
  2. [SOLVED] Extract certain data from file, help
    By battousaibounty in forum New To Java
    Replies: 4
    Last Post: 03-07-2009, 09:16 PM
  3. Extract A tar.gz file
    By sajdutt in forum Advanced Java
    Replies: 3
    Last Post: 03-03-2009, 09:29 AM
  4. Replies: 3
    Last Post: 12-09-2008, 08:17 AM
  5. Extract Text from PDF File using java
    By TSW1016 in forum Advanced Java
    Replies: 5
    Last Post: 01-06-2008, 11:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •