public class TextMarginFinder extends Object implements RenderListener
Modifier and Type | Field and Description |
---|---|
private Rectangle2D.Float |
textRectangle |
Constructor and Description |
---|
TextMarginFinder() |
Modifier and Type | Method and Description |
---|---|
void |
beginTextBlock()
Called when a new text block is beginning (i.e.
|
void |
endTextBlock()
Called when a text block has ended (i.e.
|
float |
getHeight()
Gets the height of the text block.
|
float |
getLlx()
Getter for the left margin.
|
float |
getLly()
Getter for the bottom margin.
|
float |
getUrx()
Getter for the right margin.
|
float |
getUry()
Getter for the top margin.
|
float |
getWidth()
Gets the width of the text block.
|
void |
renderImage(ImageRenderInfo renderInfo)
Called when image should be rendered
|
void |
renderText(TextRenderInfo renderInfo)
Method invokes by the PdfContentStreamProcessor.
|
private Rectangle2D.Float textRectangle
public TextMarginFinder()
public void renderText(TextRenderInfo renderInfo)
renderText
in interface RenderListener
renderInfo
- information specifying what to renderRenderListener.renderText(com.itextpdf.text.pdf.parser.TextRenderInfo)
public float getLlx()
public float getLly()
public float getUrx()
public float getUry()
public float getWidth()
public float getHeight()
public void beginTextBlock()
RenderListener
beginTextBlock
in interface RenderListener
RenderListener.beginTextBlock()
public void endTextBlock()
RenderListener
endTextBlock
in interface RenderListener
RenderListener.endTextBlock()
public void renderImage(ImageRenderInfo renderInfo)
RenderListener
renderImage
in interface RenderListener
renderInfo
- information specifying what to renderRenderListener.renderImage(com.itextpdf.text.pdf.parser.ImageRenderInfo)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses