« Return to Thread: extracting pages from a PDF document (with bookmarks)

Re: extracting pages from a PDF document (with bookmarks)

by 1T3XT info :: Rate this Message:

Reply to Author | View in Thread

Boulatov, Jaroslav wrote:
> Hello, we need to extract pages from a PDF document (with bookmarks) and
> save the extracted pages as new PDF documents while keeping the
> bookmarks. The extraction is BASED on the bookmarks :
> I want to split the original file into individual bookmarked
> subsections. There could be many bookmarks in the original file -- tens
> or even a hundred -- and all these should be extracted to new individual
> *.pdf files)
> Please advise if iText or some other application is capable of doing
> this task "programmatically", without having to do it manually.

iText can do it.
Use SimpleBookmark to get the bookmarks from the existing document.
There are different ways to 'extract' the pages. These are two examples:
http://www.1t3xt.info/examples/browse/?page=example&id=31
http://www.1t3xt.info/examples/browse/?page=example&id=32
but there are more possibilities.
You can also manipulate the bookmarks and add the altered bookmarks
to the individual subsections programmatically.
--
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

 « Return to Thread: extracting pages from a PDF document (with bookmarks)

LightInTheBox - Buy quality products at wholesale price