Please choose a menu option
Visit the IDRsolutions WebSite

Extract PDF Outline

Description Generate a file containing the PDF outline from a PDF file.
Jar Path org.jpedal.examples.text.ExtractOutline

Click for source code link

How to run the code

Windows: java -cp %jpedalDir%/jpedal.jar org/jpedal/examples/text/ExtractOutline inputValue
MacOS X Linux: java -cp $jpedalDir/jpedal.jar org/jpedal/examples/text/ExtractOutline inputValue

Click here for help on running Java programs from the command line

 

An explanation of the input values

This example expects one space delimited input values.

Input value: The filename (including the path if needed) or a directory containing files. If it contains spaces it must be enclosed by double quotes (ie "C:/Path with spaces/").

 

Other details/screenshot

This example will extract the outline tree from a PDF file and output it as a plain text file (*.txt) containing XML.

An output directory called text contains sub-directories with multiple files. Each PDF document extracts only one file called outline.txt.

 

Links to related articles

Getting started tutorial
Additional optional libraries lists items which may be needed for some PDF files or functionality.

 

Return to main PDF support section

Click here for the main PDF support area with lots of java examples, PDF tutorials and useful information to get the most out of the JPedal PDF library

 


PDF viewer