| Modifier and Type | Method and Description |
|---|---|
Rect |
Page.getArtBox()
Get the page's ArtBox.
|
Rect |
Page.getBBox()
Get the page's Bounding Box.
|
Rect |
Page.getBleedBox()
Get the page's BleedBox.
|
Rect |
Content.getBoundingBox()
The bounding box for this content.
|
Rect |
Element.getBoundingBox()
The bounding box for this element.
|
Rect |
PrintParams.getBoundingBox() |
Rect |
ShadingPattern.getBoundingBox()
The bounding box of the shading.
|
Rect |
Text.getBoundingBoxForCharacter(int characterIndex)
The bounding box for a character in this text element.
|
Rect |
Page.getCropBox()
Get the page's CropBox.
|
Rect |
DrawParams.getDestRect()
The rectangle of the bitmap.
|
Rect |
RemoteDestination.getDestRect()
The destination rectangle.
|
Rect |
ViewDestination.getDestRect()
The destination rectangle.
|
Rect |
Page.getMediaBox()
Get the page's MediaBox.
|
Rect |
Annotation.getRect()
The size and location of the annotation on its page
|
Rect |
Page.getTrimBox()
Get the page's TrimBox.
|
Rect |
DrawParams.getUpdateRect()
A rectangle represented by the coordinates of its four sides, which specifies the area to draw.
|
Rect |
Rect.intersect(Rect r2)
Obtain the intersection of this rectangle and another rectangle.
|
Rect |
Quad.toRect()
Returns a rectangle describing the same area as the quad.
|
Rect |
Rect.transform(Matrix arg0)
Transform the coordinates of the rectangle by the given Matrix Object.
|
| Modifier and Type | Method and Description |
|---|---|
Annotation |
Page.addNewAnnotation(int addAfter,
java.lang.String subType,
Rect initialRect)
Deprecated.
|
void |
Content.addPage(int insertAfterIndex,
Document containerDoc,
Page srcPage,
Matrix dstMatrix,
java.util.List<java.lang.String> annotTypes,
java.util.EnumSet<AddPageFlags> flags,
Rect bbox)
Adds the specfied Page to the Content as a Form.
|
Annotation |
Page.createAnnotation(java.lang.String subType,
Rect initialRect)
Deprecated.
|
Page |
Document.createPage(int afterPageNum,
Rect mediaBox)
Creates and acquires a new Page.
|
void |
Page.drawContents(java.awt.image.BufferedImage image,
Matrix matrix,
Rect updateRect)
Draw the contents of this page to an image, only DeviceRGBA colorModel is supported.
|
void |
Page.drawContents(java.awt.image.BufferedImage image,
Matrix matrix,
Rect updateRect,
java.util.EnumSet<SmoothFlags> newAntiAlias,
boolean doThinLine,
boolean bypassCopyPerm)
Draw the contents of this page to a BufferedImage, only DeviceRGBA colorModel is supported.
|
Image |
Page.getImage(Rect exportRect)
Export a region of a PDF page to an Image object.
|
Image |
Page.getImage(Rect exportRect,
PageImageParams ImageParams)
Export a region of a PDF page to an Image object.
|
Image |
Page.getImage(Rect exportRect,
PageImageParams ImageParams,
java.util.List<SeparationColorSpace> spaces)
Export a region of a PDF page to an Image object.
|
ImageCollection |
Page.getImageSeparations(Rect exportRect,
PageImageParams ImageParams,
java.util.List<SeparationColorSpace> spacesCollection)
Export a region of a PDF page using the specified Separation ColorSpaces to an Image Collection object.
|
ImageCollection |
Page.getImageSeparations(Rect exportRect,
PageImageParams ImageParams,
java.util.List<SeparationColorSpace> spaces,
RenderProgressProc progressProc) |
Image |
Page.getOutputPreviewImage(Rect exportRect,
PageImageParams ImageParams,
java.util.List<SeparationColorSpace> spaces)
Create an Output Preview image used when Soft Proofing a document prior to actual printing.
|
boolean |
Rect.inRect(Rect r2)
Check if this rectangle is inside the parameter rectangle.
|
Rect |
Rect.intersect(Rect r2)
Obtain the intersection of this rectangle and another rectangle.
|
java.awt.image.BufferedImage |
Page.makeBufferedImage(Rect exportRect,
PageImageParams pip)
Export a region of a PDF page to a java.awt.BufferedImage.
|
boolean |
Rect.overlaps(Rect r2)
Check if two rectangles overlap.
|
boolean |
Text.rectIntersectsCharacter(Rect r,
int index)
Tests whether any part of a rectangle is on a specified character within this Text object.
|
boolean |
Text.rectIntersectsTextRun(Rect r,
int index)
Tests whether any part of a rectangle is on a specified TextRun within this Text object.
|
void |
Page.setArtBox(Rect r)
Set the page's ArtBox.
|
void |
Page.setBleedBox(Rect r)
Set the page's BleedBox.
|
void |
PrintParams.setBoundingBox(Rect box) |
void |
ShadingPattern.setBoundingBox(Rect boundingBox)
The bounding box of the shading.
|
void |
Page.setCropBox(Rect r)
Set the page's CropBox.
|
void |
DrawParams.setDestRect(Rect rect)
The rectangle of the bitmap.
|
void |
RemoteDestination.setDestRect(Rect destRect)
Set the rectangle for the destination.
|
void |
ViewDestination.setDestRect(Rect ViewDestRect)
Set the destination rectangle of the view.
|
void |
Page.setMediaBox(Rect r)
Set the page's MediaBox.
|
void |
Annotation.setRect(Rect rect)
The size and location of the annotation on its page
|
void |
Page.setTrimBox(Rect r)
Set the page's TrimBox.
|
void |
DrawParams.setUpdateRect(Rect rect)
A rectangle represented by the coordinates of its four sides, which specifies the area to draw.
|
| Constructor and Description |
|---|
Annotation(Page page,
java.lang.String subtype,
Rect initialRect)
Create a new Annotation at the end of a page's annotation array.
|
Annotation(Page page,
java.lang.String subtype,
Rect initialRect,
int addAfter)
Create a new Annotation at a specific index in the page's annotation array.
|
CircleAnnotation(Page page,
Rect initialRect)
Create a new CircleAnnotation at the end of a page's annotation array.
|
CircleAnnotation(Page page,
Rect initialRect,
int addAfter)
Create a new CircleAnnotation at a specific index in the page's annotation array.
|
FreeTextAnnotation(Page page,
Rect initialRect,
java.lang.String defaultAppearance)
Create a new FreeTextAnnotation at the end of a page's annotation array.
|
FreeTextAnnotation(Page page,
Rect initialRect,
java.lang.String defaultAppearance,
int addAfter)
Create a new FreeTextAnnotation at a specific index in the page's annotation array.
|
InkAnnotation(Page page,
Rect initialRect)
Create a new InkAnnotation at the end of a page's annotation array.
|
InkAnnotation(Page page,
Rect initialRect,
int addAfter)
Create a new InkAnnotation at a specific index in the page's annotation array.
|
LineAnnotation(Page page,
Rect initialRect,
Point startPoint,
Point endPoint)
Create a new LineAnnotation at the end of a page's annotation array.
|
LineAnnotation(Page page,
Rect initialRect,
Point startPoint,
Point endPoint,
int addAfter)
Create a new LineAnnotation at a specific index in the page's annotation array.
|
LinkAnnotation(Page page,
Rect initialRect)
Create a new LinkAnnotation at the end of a page's annotation array.
|
LinkAnnotation(Page page,
Rect initialRect,
int addAfter)
Create a new LinkAnnotation at a specific index in the page's annotation array.
|
Page(Document doc,
int afterPageNum,
Rect mediaBox)
Creates and acquires a new page.
|
PolygonAnnotation(Page page,
Rect initialRect,
java.util.List<Point> vertices)
Create a new PolygonAnnotation at the end of a page's annotation array.
|
PolygonAnnotation(Page page,
Rect initialRect,
java.util.List<Point> vertices,
int addAfter)
Create a new PolygonAnnotation at a specific index in the page's annotation array.
|
PolyLineAnnotation(Page page,
Rect initialRect,
java.util.List<Point> vertices)
Create a new PolyLineAnnotation at the end of a page's annotation array.
|
PolyLineAnnotation(Page page,
Rect initialRect,
java.util.List<Point> vertices,
int addAfter)
Create a new PolyLineAnnotation at a specific index in the page's annotation array.
|
RemoteDestination(Document doc,
int pageNum,
java.lang.String fitType,
Rect r,
double zoom)
Construct a RemoteDestination.
|
SquareAnnotation(Page page,
Rect initialRect)
Create a new SquareAnnotation at the end of a page's annotation array.
|
SquareAnnotation(Page page,
Rect initialRect,
int addAfter)
Create a new SquareAnnotation at a specific index in the page's annotation array.
|
ViewDestination(Document doc,
int pageNum,
java.lang.String fitType,
Rect r,
double zoom)
General purpose constructor: construct with all elements
|