com.itextpdf.text.pdf.parser
Interface RenderListener

All Known Subinterfaces:
TextProvidingRenderListener
All Known Implementing Classes:
FilteredRenderListener, FilteredTextRenderListener, LocationAwareTextExtractingPdfContentRenderListener, SimpleTextExtractingPdfContentRenderListener

public interface RenderListener

A callback interface that receives notificaitons from the PdfContentStreamProcessor as various render operations are required.
Important: This interface may be converted to an abstract base class in the future to allow for adding additional render calls as the content stream processor is enhanced

Since:
5.0

Method Summary
 void beginTextBlock()
          Called when a new text block is beginning (i.e.
 void endTextBlock()
          Called when a text block has ended (i.e.
 void renderImage(ImageRenderInfo renderInfo)
          Called when image should be rendered
 void renderText(TextRenderInfo renderInfo)
          Called when text should be rendered
 void reset()
          Resets the internal state of the RenderListener
 

Method Detail

beginTextBlock

void beginTextBlock()
Called when a new text block is beginning (i.e. BT)

Since:
iText 5.0.1

renderText

void renderText(TextRenderInfo renderInfo)
Called when text should be rendered

Parameters:
renderInfo - information specifying what to render

endTextBlock

void endTextBlock()
Called when a text block has ended (i.e. ET)

Since:
iText 5.0.1

renderImage

void renderImage(ImageRenderInfo renderInfo)
Called when image should be rendered

Parameters:
renderInfo - information specifying what to render
Since:
iText 5.0.1

reset

void reset()
Resets the internal state of the RenderListener


Hosted by Hostbasket