Uses of Class
org.sejda.sambox.pdmodel.common.PDRectangle
Packages that use PDRectangle
Package
Description
The tagged PDF package provides a mechanism for incorporating "tags" (standard
structure types and attributes) into a PDF file.
The interactive package contains classes for handling Interactive Forms, also known as "AcroForms".
The measurement package contains classes that work with elements specifying measure properties.
A package to allow provide access to PDF page navigation functionality.
-
Uses of PDRectangle in org.sejda.sambox.contentstream
Methods in org.sejda.sambox.contentstream that return PDRectangleModifier and TypeMethodDescriptionPDContentStream.getBBox()Returns the bounding box of the contents.Methods in org.sejda.sambox.contentstream with parameters of type PDRectangleModifier and TypeMethodDescriptionprivate voidPDFStreamEngine.clipToRect(PDRectangle rectangle) Transforms the given rectangle using the CTM and then intersects it with the current clipping area. -
Uses of PDRectangle in org.sejda.sambox.pdmodel
Fields in org.sejda.sambox.pdmodel declared as PDRectangleMethods in org.sejda.sambox.pdmodel that return PDRectangleModifier and TypeMethodDescriptionprivate PDRectanglePDPage.clipToMediaBox(PDRectangle box) Clips the given box to the bounds of the media box.PDPage.getArtBox()A rectangle, expressed in default user space units, defining the extent of the page's meaningful content (including potential white space) as intended by the page's creator The default is the CropBox.PDPage.getArtBoxRaw()PDPage.getBBox()PDPage.getBleedBox()A rectangle, expressed in default user space units, defining the region to which the contents of the page should be clipped when output in a production environment.PDPage.getBleedBoxRaw()PDPage.getCropBox()A rectangle, expressed in default user space units, defining the visible region of default user space.PDPage.getCropBoxRaw()PDPage.getMediaBox()A rectangle, expressed in default user space units, defining the boundaries of the physical medium on which the page is intended to be displayed or printed.PDPage.getMediaBoxRaw()PDPage.getTrimBox()A rectangle, expressed in default user space units, defining the intended dimensions of the finished page after trimming.PDPage.getTrimBoxRaw()Methods in org.sejda.sambox.pdmodel with parameters of type PDRectangleModifier and TypeMethodDescriptionprivate PDRectanglePDPage.clipToMediaBox(PDRectangle box) Clips the given box to the bounds of the media box.private booleanPDPage.inMediaBoxBounds(PDRectangle box) voidPDPage.setArtBox(PDRectangle artBox) This will set the ArtBox for this page.voidPDPage.setBleedBox(PDRectangle bleedBox) This will set the BleedBox for this page.voidPDPage.setCropBox(PDRectangle cropBox) This will set the CropBox for this page.voidPDPage.setMediaBox(PDRectangle mediaBox) This will set the mediaBox for this page.voidPDPage.setTrimBox(PDRectangle trimBox) This will set the TrimBox for this page.Constructors in org.sejda.sambox.pdmodel with parameters of type PDRectangleModifierConstructorDescriptionPDPage(PDRectangle mediaBox) Creates a new instance of PDPage for embedding. -
Uses of PDRectangle in org.sejda.sambox.pdmodel.common
Fields in org.sejda.sambox.pdmodel.common declared as PDRectangleModifier and TypeFieldDescriptionstatic final PDRectanglePDRectangle.A0A rectangle the size of A0 Paper.static final PDRectanglePDRectangle.A1A rectangle the size of A1 Paper.static final PDRectanglePDRectangle.A2A rectangle the size of A2 Paper.static final PDRectanglePDRectangle.A3A rectangle the size of A3 Paper.static final PDRectanglePDRectangle.A4A rectangle the size of A4 Paper.static final PDRectanglePDRectangle.A5A rectangle the size of A5 Paper.static final PDRectanglePDRectangle.A6A rectangle the size of A6 Paper.static final PDRectanglePDRectangle.LEGALA rectangle the size of U.S.static final PDRectanglePDRectangle.LETTERA rectangle the size of U.S.Methods in org.sejda.sambox.pdmodel.common that return PDRectangleModifier and TypeMethodDescriptionPDRectangle.createRetranslatedRectangle()This will create a translated rectangle based off of this rectangle, such that the new rectangle retains the same dimensions(height/width), but the lower left x,y values are zero.static PDRectanglePDRectangle.rectangleFrom(COSArray array) PDRectangle.rotate()PDRectangle.rotate(int degrees) -
Uses of PDRectangle in org.sejda.sambox.pdmodel.documentinterchange.taggedpdf
Methods in org.sejda.sambox.pdmodel.documentinterchange.taggedpdf that return PDRectangleModifier and TypeMethodDescriptionPDArtifactMarkedContent.getBBox()Gets the artifact's bounding box (BBox).PDLayoutAttributeObject.getBBox()Gets the bounding box.Methods in org.sejda.sambox.pdmodel.documentinterchange.taggedpdf with parameters of type PDRectangleModifier and TypeMethodDescriptionvoidPDLayoutAttributeObject.setBBox(PDRectangle bbox) Sets the bounding box. -
Uses of PDRectangle in org.sejda.sambox.pdmodel.font
Methods in org.sejda.sambox.pdmodel.font that return PDRectangleModifier and TypeMethodDescriptionPDType3CharProc.getBBox()PDType3Font.getFontBBox()This will get the fonts bounding box from its dictionary.PDFontDescriptor.getFontBoundingBox()This will get the fonts bounding box.PDType3CharProc.getGlyphBBox()Calculate the bounding box of this glyph.Methods in org.sejda.sambox.pdmodel.font with parameters of type PDRectangleModifier and TypeMethodDescriptionvoidPDFontDescriptor.setFontBoundingBox(PDRectangle rect) Set the fonts bounding box. -
Uses of PDRectangle in org.sejda.sambox.pdmodel.graphics.form
Methods in org.sejda.sambox.pdmodel.graphics.form that return PDRectangleModifier and TypeMethodDescriptionPDFormXObject.getBBox()An array of four numbers in the form coordinate system (see below), giving the coordinates of the left, bottom, right, and top edges, respectively, of the form XObject's bounding box.Methods in org.sejda.sambox.pdmodel.graphics.form with parameters of type PDRectangleModifier and TypeMethodDescriptionvoidPDFormXObject.setBBox(PDRectangle bbox) This will set the BBox (bounding box) for this form. -
Uses of PDRectangle in org.sejda.sambox.pdmodel.graphics.pattern
Methods in org.sejda.sambox.pdmodel.graphics.pattern that return PDRectangleModifier and TypeMethodDescriptionPDTilingPattern.getBBox()An array of four numbers in the form coordinate system (see below), giving the coordinates of the left, bottom, right, and top edges, respectively, of the pattern's bounding box.Methods in org.sejda.sambox.pdmodel.graphics.pattern with parameters of type PDRectangleModifier and TypeMethodDescriptionvoidPDTilingPattern.setBBox(PDRectangle bbox) This will set the BBox (bounding box) for this Pattern. -
Uses of PDRectangle in org.sejda.sambox.pdmodel.graphics.shading
Fields in org.sejda.sambox.pdmodel.graphics.shading declared as PDRectangleMethods in org.sejda.sambox.pdmodel.graphics.shading that return PDRectangleModifier and TypeMethodDescriptionPDShading.getBBox()An array of four numbers in the form coordinate system (see below), giving the coordinates of the left, bottom, right, and top edges, respectively, of the shading's bounding box.Methods in org.sejda.sambox.pdmodel.graphics.shading with parameters of type PDRectangleModifier and TypeMethodDescriptionvoidPDShading.setBBox(PDRectangle newBBox) This will set the BBox (bounding box) for this Shading. -
Uses of PDRectangle in org.sejda.sambox.pdmodel.graphics.state
Constructors in org.sejda.sambox.pdmodel.graphics.state with parameters of type PDRectangleModifierConstructorDescriptionPDGraphicsState(PDRectangle page) Constructor with a given page size to initialize the clipping path. -
Uses of PDRectangle in org.sejda.sambox.pdmodel.interactive.annotation
Methods in org.sejda.sambox.pdmodel.interactive.annotation that return PDRectangleModifier and TypeMethodDescriptionPDAnnotation.getRectangle()The annotation rectangle, defining the location of the annotation on the page in default user space units.PDAnnotationMarkup.getRectDifference()This will get the rectangle difference rectangle.PDAnnotationSquareCircle.getRectDifference()This will get the rectangle difference rectangle.Methods in org.sejda.sambox.pdmodel.interactive.annotation with parameters of type PDRectangleModifier and TypeMethodDescriptionvoidPDAnnotation.setRectangle(PDRectangle rectangle) This will set the rectangle for this annotation.voidPDAnnotationMarkup.setRectDifference(PDRectangle rd) This will set the rectangle difference rectangle.voidPDAnnotationSquareCircle.setRectDifference(PDRectangle rd) This will set the rectangle difference rectangle. -
Uses of PDRectangle in org.sejda.sambox.pdmodel.interactive.annotation.handlers
Fields in org.sejda.sambox.pdmodel.interactive.annotation.handlers declared as PDRectangleModifier and TypeFieldDescriptionprivate final PDRectangleCloudyBorder.annotRectprivate PDRectangleCloudyBorder.rectWithDiffMethods in org.sejda.sambox.pdmodel.interactive.annotation.handlers that return PDRectangleModifier and TypeMethodDescription(package private) PDRectanglePDAbstractAppearanceHandler.addRectDifferences(PDRectangle rectangle, float[] differences) Get a rectangle enlarged by the differences.private PDRectanglePDTextAppearanceHandler.adjustRectAndBBox(PDAnnotationText annotation, float width, float height) private PDRectangleCloudyBorder.applyRectDiff(PDRectangle rd, float min) (package private) PDRectanglePDAbstractAppearanceHandler.applyRectDifferences(PDRectangle rectangle, float[] differences) Get a rectangle with the differences applied to each side.(package private) PDRectangleCloudyBorder.getBBox()Returns theBBoxentry (bounding box) for the appearance stream form XObject.(package private) PDRectanglePDAbstractAppearanceHandler.getPaddedRectangle(PDRectangle rectangle, float padding) Get a padded rectangle.(package private) PDRectangleCloudyBorder.getRectangle()Returns the updatedRectentry for the annotation.(package private) PDRectanglePDAbstractAppearanceHandler.getRectangle()(package private) PDRectangleCloudyBorder.getRectDifference()Returns the updatedRDentry for Square and Circle annotations.(package private) PDRectanglePDAbstractAppearanceHandler.handleBorderBox(PDAnnotationSquareCircle annotation, float lineWidth) Methods in org.sejda.sambox.pdmodel.interactive.annotation.handlers with parameters of type PDRectangleModifier and TypeMethodDescription(package private) PDRectanglePDAbstractAppearanceHandler.addRectDifferences(PDRectangle rectangle, float[] differences) Get a rectangle enlarged by the differences.private PDRectangleCloudyBorder.applyRectDiff(PDRectangle rd, float min) (package private) PDRectanglePDAbstractAppearanceHandler.applyRectDifferences(PDRectangle rectangle, float[] differences) Get a rectangle with the differences applied to each side.(package private) voidCloudyBorder.createCloudyEllipse(PDRectangle rd) Creates a cloudy border for a Circle annotation.(package private) voidCloudyBorder.createCloudyRectangle(PDRectangle rd) Creates a cloudy border for a rectangular annotation.(package private) PDRectanglePDAbstractAppearanceHandler.getPaddedRectangle(PDRectangle rectangle, float padding) Get a padded rectangle.Constructors in org.sejda.sambox.pdmodel.interactive.annotation.handlers with parameters of type PDRectangleModifierConstructorDescription(package private)CloudyBorder(PDAppearanceContentStream stream, double intensity, double lineWidth, PDRectangle rect) Creates a newCloudyBorderthat writes to the specified content stream. -
Uses of PDRectangle in org.sejda.sambox.pdmodel.interactive.form
Methods in org.sejda.sambox.pdmodel.interactive.form that return PDRectangleModifier and TypeMethodDescriptionprivate PDRectangleAppearanceGeneratorHelper.applyPadding(PDRectangle box, float padding) Apply padding to a box.private PDRectangleAppearanceGeneratorHelper.resolveBoundingBox(PDAnnotationWidget fieldWidget, PDAppearanceStream appearanceStream) Resolve the bounding box.Methods in org.sejda.sambox.pdmodel.interactive.form with parameters of type PDRectangleModifier and TypeMethodDescriptionprivate PDRectangleAppearanceGeneratorHelper.applyPadding(PDRectangle box, float padding) Apply padding to a box.(package private) floatAppearanceGeneratorHelper.calculateFontSize(PDFont font, PDRectangle contentRect) My "not so great" method for calculating the fontsize.private AffineTransformAppearanceGeneratorHelper.calculateMatrix(PDRectangle bbox, int rotation) private booleanAppearanceGeneratorHelper.hasZeroDimensions(PDRectangle bbox) private voidAppearanceGeneratorHelper.insertGeneratedCombAppearance(PDPageContentStream contents, PDRectangle bbox, PDFont font, float fontSize) Generate the appearance for comb fields.private voidAppearanceGeneratorHelper.insertGeneratedListboxAppearance(PDPageContentStream contents, PDAppearanceStream appearanceStream, PDRectangle contentRect, PDFont font, float fontSize) -
Uses of PDRectangle in org.sejda.sambox.pdmodel.interactive.measurement
Methods in org.sejda.sambox.pdmodel.interactive.measurement that return PDRectangleModifier and TypeMethodDescriptionPDViewportDictionary.getBBox()This will retrieve the rectangle specifying the location of the viewport.Methods in org.sejda.sambox.pdmodel.interactive.measurement with parameters of type PDRectangleModifier and TypeMethodDescriptionvoidPDViewportDictionary.setBBox(PDRectangle rectangle) This will set the rectangle specifying the location of the viewport. -
Uses of PDRectangle in org.sejda.sambox.printing
Methods in org.sejda.sambox.printing that return PDRectangleModifier and TypeMethodDescription(package private) static PDRectanglePDFPrintable.getRotatedCropBox(PDPage page) This will find the CropBox with rotation applied, for this page by looking up the hierarchy until it finds them.(package private) static PDRectanglePDFPrintable.getRotatedMediaBox(PDPage page) This will find the MediaBox with rotation applied, for this page by looking up the hierarchy until it finds them. -
Uses of PDRectangle in org.sejda.sambox.rendering
Fields in org.sejda.sambox.rendering declared as PDRectangleModifier and TypeFieldDescriptionprivate final PDRectanglePageDrawer.TransparencyGroup.bboxprivate PDRectanglePageDrawer.pageSizeMethods in org.sejda.sambox.rendering that return PDRectangleModifier and TypeMethodDescription(package private) PDRectanglePageDrawer.TransparencyGroup.getBBox()Methods in org.sejda.sambox.rendering with parameters of type PDRectangleModifier and TypeMethodDescriptionvoidPageDrawer.drawPage(Graphics g, PDRectangle pageSize) Draws the page to the requested context.private voidPDFRenderer.transform(Graphics2D graphics, int rotationAngle, PDRectangle cropBox, float scaleX, float scaleY) -
Uses of PDRectangle in org.sejda.sambox.text
Fields in org.sejda.sambox.text declared as PDRectangleFields in org.sejda.sambox.text with type parameters of type PDRectangle