public class PdfContentReaderTool extends Object
| Constructor and Description | 
|---|
PdfContentReaderTool()  |  
          
| Modifier and Type | Method and Description | 
|---|---|
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 String |  
           getXObjectDetail(PdfDictionary resourceDic) 
            
              Displays a summary of the entries in the XObject dictionary for the stream 
               |  
          
static void |  
           listContentStream(File pdfFile, int pageNum, PrintWriter out) 
            
              Writes information about the specified page in a PDF file to the specified output stream. 
               |  
          
static void |  
           listContentStream(File pdfFile, PrintWriter out) 
            
              Writes information about each page in a PDF file to the specified output stream. 
               |  
          
static void |  
           listContentStreamForPage(PdfReader reader, int pageNum, PrintWriter out) 
            
              Writes information about a specific page from PdfReader to the specified output stream. 
               |  
          
static void |  
           main(String[] args) 
            
              Writes information about each page in a PDF file to the specified file, or System.out. 
               |  
          
public static String getDictionaryDetail(PdfDictionary dic)
dic - the dictionary of which you want the detail 
           public static String getDictionaryDetail(PdfDictionary dic, int depth)
dic - the dictionary of which you want the detail 
           depth - the depth of the current dictionary (for nested dictionaries) 
           public static String getXObjectDetail(PdfDictionary resourceDic) throws IOException
resourceDic - the resource dictionary for the stream 
           IOException 
           public static void listContentStreamForPage(PdfReader reader, int pageNum, PrintWriter out) throws IOException
reader - the PdfReader to read the page content from 
           pageNum - the page number to read 
           out - the output stream to send the content to 
           IOException 
           public static void listContentStream(File pdfFile, PrintWriter out) throws IOException
pdfFile - a File instance referring to a PDF file 
           out - the output stream to send the content to 
           IOException 
           public static void listContentStream(File pdfFile, int pageNum, PrintWriter out) throws IOException
pdfFile - a File instance referring to a PDF file 
           pageNum - the page number to read 
           out - the output stream to send the content to 
           IOException 
           public static void main(String[] args)
args - 
           Copyright © 1998–2019. All rights reserved.