public class PreSectionedPage
extends java.lang.Object
Constructor and Description |
---|
PreSectionedPage(float width,
float height)
Initialize a pre-sectioned page with the width and height of the page.
|
Modifier and Type | Method and Description |
---|---|
void |
add(com.itextpdf.text.Rectangle r)
Adds a single rectangle to the page's word boxes.
|
void |
addAll(java.util.List<com.itextpdf.text.Rectangle> rectangles)
Adds a list of rectangles to the page's word boxes.
|
float |
getHeight()
Gets the height of this page.
|
float |
getWidth()
Gets the width of this page.
|
java.util.Set<com.itextpdf.text.Rectangle> |
getWordBoxes()
Gets this page's word boxes.
|
public PreSectionedPage(float width, float height)
width
- the width of the page.height
- the height of the page.public void add(com.itextpdf.text.Rectangle r)
r
- the rectangle to add to the word boxes collection.public void addAll(java.util.List<com.itextpdf.text.Rectangle> rectangles)
rectangles
- the list of rectangles to add to the page's word boxespublic java.util.Set<com.itextpdf.text.Rectangle> getWordBoxes()
public float getWidth()
public float getHeight()