| Modifier and Type | Method and Description |
|---|---|
Color |
AbstractLinearGradientBuilder.buildColor(Rectangle targetBoundingBox,
AffineTransform contextTransform,
PdfDocument document)
Builds the
Color object representing the linear gradient with specified configuration
that fills the target bounding box. |
protected static double[] |
AbstractLinearGradientBuilder.evaluateCoveringDomain(Point[] coords,
Rectangle toCover)
Evaluates the minimal domain that covers the box with vector normals.
|
AffineTransform |
LinearGradientBuilder.getCurrentSpaceToGradientVectorSpaceTransformation(Rectangle targetBoundingBox,
AffineTransform contextTransform) |
protected AffineTransform |
AbstractLinearGradientBuilder.getCurrentSpaceToGradientVectorSpaceTransformation(Rectangle targetBoundingBox,
AffineTransform contextTransform)
Returns the current space to gradient vector space transformations that should be applied
to the shading color.
|
Point[] |
LinearGradientBuilder.getGradientVector(Rectangle targetBoundingBox,
AffineTransform contextTransform) |
protected Point[] |
StrategyBasedLinearGradientBuilder.getGradientVector(Rectangle targetBoundingBox,
AffineTransform contextTransform) |
protected abstract Point[] |
AbstractLinearGradientBuilder.getGradientVector(Rectangle targetBoundingBox,
AffineTransform contextTransform)
Returns the base gradient vector in gradient vector space.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PageSize |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Rectangle.applyMargins(float topIndent,
float rightIndent,
float bottomIndent,
float leftIndent,
boolean reverse)
Change the rectangle according the specified margins.
|
static Rectangle |
Rectangle.calculateBBox(List<Point> points)
Calculates the bounding box of passed points.
|
Rectangle |
Rectangle.clone()
Creates a "deep copy" of this rectangle, meaning the object returned by this method will be independent
of the object being cloned.
|
Rectangle |
PageSize.clone()
Creates a "deep copy" of this PageSize, meaning the object returned by this method will be independent
of the object being cloned.
|
static Rectangle |
Rectangle.createBoundingRectangleFromQuadPoint(PdfArray quadPoints)
Create the bounding rectangle for the given array of quadpoints.
|
Rectangle |
Rectangle.decreaseHeight(float extra)
Decreases the height of rectangle by the given value.
|
Rectangle |
Rectangle.decreaseWidth(float extra)
Decreases the width of rectangle by the given value.
|
Rectangle |
LineSegment.getBoundingRectangle()
Computes the bounding rectangle for this line segment.
|
static Rectangle |
Rectangle.getCommonRectangle(Rectangle... rectangles)
Calculates the common rectangle which includes all the input rectangles.
|
Rectangle |
Rectangle.getIntersection(Rectangle rect)
Get the rectangle representation of the intersection between this rectangle and the passed rectangle
|
static Rectangle |
Rectangle.getRectangleOnRotatedPage(Rectangle rect,
PdfPage page)
Gets the rectangle as it looks on the rotated page
and returns the rectangle in coordinates relevant to the true page origin.
|
Rectangle |
Rectangle.increaseHeight(float extra)
Increases the height of rectangle by the given value.
|
Rectangle |
Rectangle.increaseWidth(float extra)
Increases the width of rectangle by the given value.
|
Rectangle |
Rectangle.moveDown(float move)
Decreases the y coordinate.
|
Rectangle |
Rectangle.moveLeft(float move)
Decreases the x coordinate.
|
Rectangle |
Rectangle.moveRight(float move)
Increases the x coordinate.
|
Rectangle |
Rectangle.moveUp(float move)
Increases the y coordinate.
|
Rectangle |
Rectangle.setBbox(float llx,
float lly,
float urx,
float ury)
Sets the rectangle by the coordinates, specifying its lower left and upper right points.
|
Rectangle |
Rectangle.setHeight(float height)
Sets the height of rectangle.
|
Rectangle |
Rectangle.setWidth(float width)
Sets the width of rectangle.
|
Rectangle |
Rectangle.setX(float x)
Sets the X coordinate of lower left point.
|
Rectangle |
Rectangle.setY(float y)
Sets the Y coordinate of lower left point.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Rectangle> |
Rectangle.createBoundingRectanglesFromQuadPoint(PdfArray quadPoints)
Create a list of bounding rectangles from an 8 x n array of Quadpoints.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Rectangle.contains(Rectangle rect)
Check if this rectangle contains the passed rectangle.
|
boolean |
Rectangle.equalsWithEpsilon(Rectangle that)
Compares instance of this rectangle with given deviation equals to 0.0001
|
boolean |
Rectangle.equalsWithEpsilon(Rectangle that,
float eps)
Compares instance of this rectangle with given deviation.
|
static Rectangle |
Rectangle.getCommonRectangle(Rectangle... rectangles)
Calculates the common rectangle which includes all the input rectangles.
|
Rectangle |
Rectangle.getIntersection(Rectangle rect)
Get the rectangle representation of the intersection between this rectangle and the passed rectangle
|
static Rectangle |
Rectangle.getRectangleOnRotatedPage(Rectangle rect,
PdfPage page)
Gets the rectangle as it looks on the rotated page
and returns the rectangle in coordinates relevant to the true page origin.
|
boolean |
Rectangle.overlaps(Rectangle rect)
Check if this rectangle and the passed rectangle overlap
|
boolean |
Rectangle.overlaps(Rectangle rect,
float epsilon)
Check if this rectangle and the passed rectangle overlap
|
void |
Path.rectangle(Rectangle rect)
Appends a rectangle to the current path as a complete subpath.
|
| Constructor and Description |
|---|
PageSize(Rectangle box) |
Rectangle(Rectangle rect)
Creates the copy of given
Rectangle |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
PdfPage.getArtBox()
Gets the
Rectangle object specified by page's ArtBox, that define the extent of the page’s
meaningful content (including potential white space) as intended by the page’s creator. |
Rectangle |
PdfDictionary.getAsRectangle(PdfName key)
Returns the value associated to this key as a Rectangle.
|
Rectangle |
PdfPage.getBleedBox()
Gets the
Rectangle object specified by page's BleedBox, that define the region to which the
contents of the page shall be clipped when output in a production environment. |
Rectangle |
PdfPage.getCropBox()
Gets the
Rectangle specified by page's CropBox, that defines the visible region of default user space. |
Rectangle |
PdfPage.getMediaBox()
Gets
Rectangle object specified by page's Media Box, that defines the boundaries of the physical medium
on which the page shall be displayed or printed |
Rectangle |
PdfPage.getPageSize()
Gets page size, defined by media box object.
|
Rectangle |
PdfPage.getPageSizeWithRotation()
Gets page size, considering page rotation.
|
Rectangle |
PdfPage.getTrimBox()
Gets the
Rectangle object specified by page's TrimBox object,
that define the intended dimensions of the finished page after trimming. |
Rectangle |
PdfArray.toRectangle()
Returns the first four elements of this array as a PdfArray.
|
| Modifier and Type | Method and Description |
|---|---|
PdfPage |
PdfPage.setArtBox(Rectangle rectangle)
Sets the ArtBox object, that define the extent of the page’s meaningful content
(including potential white space) as intended by the page’s creator.
|
PdfPage |
PdfPage.setBleedBox(Rectangle rectangle)
Sets the BleedBox object, that defines the region to which the contents of the page shall be clipped
when output in a production environment.
|
PdfPage |
PdfPage.setCropBox(Rectangle rectangle)
Sets the CropBox object, that defines the visible region of default user space.
|
PdfPage |
PdfPage.setMediaBox(Rectangle rectangle)
Sets the Media Box object, that defines the boundaries of the physical medium
on which the page shall be displayed or printed.
|
PdfPage |
PdfPage.setTrimBox(Rectangle rectangle)
Sets the TrimBox object, that define the intended dimensions of the finished page after trimming.
|
| Constructor and Description |
|---|
PdfArray(Rectangle rectangle)
Create a new PdfArray.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Pdf3DAnnotation.getViewBox()
Gets the 3D view box, which is the rectangular area in which the 3D artwork shall be drawn.
|
| Modifier and Type | Method and Description |
|---|---|
static PdfTextMarkupAnnotation |
PdfTextMarkupAnnotation.createHighLight(Rectangle rect,
float[] quadPoints)
Creates a text markup annotation of highlight style subtype.
|
static PdfPolyGeomAnnotation |
PdfPolyGeomAnnotation.createPolygon(Rectangle rect,
float[] vertices) |
static PdfPolyGeomAnnotation |
PdfPolyGeomAnnotation.createPolyLine(Rectangle rect,
float[] vertices) |
static PdfTextMarkupAnnotation |
PdfTextMarkupAnnotation.createSquiggly(Rectangle rect,
float[] quadPoints)
Creates a text markup annotation of squiggly-underline type.
|
static PdfTextMarkupAnnotation |
PdfTextMarkupAnnotation.createStrikeout(Rectangle rect,
float[] quadPoints)
Creates a text markup annotation of strikeout style subtype.
|
static PdfTextMarkupAnnotation |
PdfTextMarkupAnnotation.createUnderline(Rectangle rect,
float[] quadPoints)
Creates a text markup annotation of underline style subtype.
|
Pdf3DAnnotation |
Pdf3DAnnotation.setViewBox(Rectangle viewBox)
Sets the 3D view box, which is the rectangular area in which the 3D artwork shall be drawn.
|
| Modifier and Type | Method and Description |
|---|---|
PdfXObject |
PdfCanvas.addImageFittedIntoRectangle(ImageData image,
Rectangle rect,
boolean asInline)
Creates
PdfImageXObject from image and fitted into specific rectangle on canvas. |
PdfCanvas |
PdfCanvas.addXObjectFittedIntoRectangle(PdfXObject xObject,
Rectangle rect)
Adds
PdfXObject fitted into specific rectangle on canvas. |
PdfCanvas |
PdfCanvas.rectangle(Rectangle rectangle)
Draws a rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DashedLine.draw(PdfCanvas canvas,
Rectangle drawArea) |
void |
SolidLine.draw(PdfCanvas canvas,
Rectangle drawArea) |
void |
ILineDrawer.draw(PdfCanvas canvas,
Rectangle drawArea)
Performs configurable drawing operations related to specific region
coordinates on a canvas.
|
void |
DottedLine.draw(PdfCanvas canvas,
Rectangle drawArea) |
| Constructor and Description |
|---|
TextRegionEventFilter(Rectangle filterRect)
Constructs a filter instance.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
CharacterRenderInfo.getBoundingBox() |
Rectangle |
IPdfTextLocation.getRectangle() |
Rectangle |
DefaultPdfTextLocation.getRectangle() |
Rectangle |
TextMarginFinder.getTextRectangle()
Returns the common text rectangle, containing all the text found in the stream so far, ot
null, if no
text has been found yet. |
| Modifier and Type | Method and Description |
|---|---|
protected List<Rectangle> |
RegexBasedLocationExtractionStrategy.toRectangles(List<CharacterRenderInfo> cris)
Converts
CharacterRenderInfo objects to Rectangles
This method is protected and not final so that custom implementations can choose to override it. |
| Modifier and Type | Method and Description |
|---|---|
DefaultPdfTextLocation |
DefaultPdfTextLocation.setRectangle(Rectangle rectangle) |
| Constructor and Description |
|---|
DefaultPdfTextLocation(int pageNr,
Rectangle rect,
String text) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
PdfPattern.Tiling.getBBox()
Gets the pattern cell's bounding box.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PdfPattern.Tiling.setBBox(Rectangle bbox)
Sets the pattern cell's bounding box.
|
| Constructor and Description |
|---|
Tiling(Rectangle bbox)
Creates a new Tiling instance.
|
Tiling(Rectangle bbox,
boolean colored)
Creates a new Tiling instance.
|
Tiling(Rectangle bbox,
float xStep,
float yStep)
Creates a new Tiling instance.
|
Tiling(Rectangle bbox,
float xStep,
float yStep,
boolean colored)
Creates a new Tiling instance.
|
| Modifier and Type | Method and Description |
|---|---|
static Rectangle |
PdfFormXObject.calculateBBoxMultipliedByMatrix(PdfFormXObject form)
Calculates the coordinates of the xObject BBox multiplied by the Matrix field.
|
static Rectangle |
PdfXObject.calculateProportionallyFitRectangleWithHeight(PdfXObject xObject,
float x,
float y,
float height)
Calculates a rectangle with the specified coordinates and height, and the width is
calculated in such a way that the original proportions of the xObject do not change.
|
static Rectangle |
PdfXObject.calculateProportionallyFitRectangleWithWidth(PdfXObject xObject,
float x,
float y,
float width)
Calculates a rectangle with the specified coordinates and width, and the height is
calculated in such a way that the original proportions of the xObject do not change.
|
| Constructor and Description |
|---|
PdfFormXObject(Rectangle bBox)
Creates a new instance of Form XObject.
|
| Modifier and Type | Method and Description |
|---|---|
String |
CompareTool.compareByContent(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix,
Map<Integer,List<Rectangle>> ignoredAreas)
Compares two PDF documents by content starting from page dictionaries and then recursively comparing
corresponding objects which are referenced from them.
|
String |
CompareTool.compareByContent(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix,
Map<Integer,List<Rectangle>> ignoredAreas,
byte[] outPass,
byte[] cmpPass)
This method overload is used to compare two encrypted PDF documents.
|
String |
CompareTool.compareVisually(String outPdf,
String cmpPdf,
String outPath,
String differenceImagePrefix,
Map<Integer,List<Rectangle>> ignoredAreas)
Compares two documents visually.
|
Copyright © 1998–2021 iText Group NV. All rights reserved.