com.lowagie.text.pdf.parser
Class PdfContentReaderTool

java.lang.Object
  extended by com.lowagie.text.pdf.parser.PdfContentReaderTool

public class PdfContentReaderTool
extends Object

Tool that parses the content of a PDF document.

Since:
2.1.4

Constructor Summary
PdfContentReaderTool()
           
 
Method Summary
static String getDictionaryDetail(PdfDictionary dic)
          Shows the detail of a dictionary.
static String getDictionaryDetail(PdfDictionary dic, int depth)
          Shows the detail of a dictionary.
static void listContentStream(File pdfFile)
          Writes information about each page in a PDF file to the System.out.
static void main(String[] args)
          Writes information about each page in a PDF file to the System.out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfContentReaderTool

public PdfContentReaderTool()
Method Detail

getDictionaryDetail

public static String getDictionaryDetail(PdfDictionary dic)
Shows the detail of a dictionary. This is similar to the PdfLister functionality.

Parameters:
dic - the dictionary of which you want the detail
Returns:
a String representation of the dictionary

getDictionaryDetail

public static String getDictionaryDetail(PdfDictionary dic,
                                         int depth)
Shows the detail of a dictionary.

Parameters:
dic - the dictionary of which you want the detail
depth - the depth of the current dictionary (for nested dictionaries)
Returns:
a String representation of the dictionary

listContentStream

public static void listContentStream(File pdfFile)
                              throws IOException
Writes information about each page in a PDF file to the System.out.

Parameters:
pdfFile - a File instance referring to a PDF file
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Writes information about each page in a PDF file to the System.out.

Parameters:
args -
Throws:
Exception

Hosted by Hostbasket