com.itextpdf.text.pdf.parser
Class PdfReaderContentParser

java.lang.Object
  extended by com.itextpdf.text.pdf.parser.PdfReaderContentParser

public class PdfReaderContentParser
extends Object

A utility class that makes it cleaner to process content from pages of a PdfReader through a specified RenderListener.

Since:
5.0.2

Constructor Summary
PdfReaderContentParser(PdfReader reader)
           
 
Method Summary
<E extends RenderListener>
E
processContent(int pageNumber, E renderListener)
          Processes content from the specified page number using the specified listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfReaderContentParser

public PdfReaderContentParser(PdfReader reader)
Method Detail

processContent

public <E extends RenderListener> E processContent(int pageNumber,
                                                   E renderListener)
                                        throws IOException
Processes content from the specified page number using the specified listener

Type Parameters:
E - the type of the renderListener - this makes it easy to chain calls
Parameters:
pageNumber - the page number to process
renderListener - the listener that will receive render callbacks
Returns:
the provided renderListener
Throws:
IOException - if operations on the reader fail


Copyright © 2013. All Rights Reserved.