Uses of Class
eu.europa.esig.dss.pdf.AnnotationBox
Packages that use AnnotationBox
Package
Description
-
Uses of AnnotationBox in eu.europa.esig.dss.pdf
Methods in eu.europa.esig.dss.pdf that return AnnotationBoxModifier and TypeMethodDescriptionprotected AnnotationBoxAbstractPDFSignatureService.buildSignatureFieldBox(SignatureDrawer signatureDrawer) Returns a SignatureFieldBox.PdfAnnotation.getAnnotationBox()Returns theAnnotationBoxPdfDocumentReader.getPageBox(int page) Returns a page box dimensionsprotected AnnotationBoxAbstractPDFSignatureService.getVisibleSignatureFieldBoxPosition(PdfDocumentReader reader, SignatureFieldParameters parameters) Checks if the signatureFieldBox overlaps with any existing annotations on the given page and returns the respectful signature field boxprotected AnnotationBoxAbstractPDFSignatureService.getVisibleSignatureFieldBoxPosition(SignatureDrawer signatureDrawer, PdfDocumentReader documentReader, SignatureFieldParameters fieldParameters) Checks validity of the SignatureField position and returns the calculated signature field boxprotected AnnotationBoxAbstractPDFSignatureService.toPdfPageCoordinates(AnnotationBox fieldAnnotationBox, AnnotationBox pageBox) This method transforms afieldAnnotationBox's positions and dimensions according to the given pageAnnotationBox.toPdfPageCoordinates(float pageHeight) Creates a newAnnotationBoxmirrored vertically relatively to the givenpageHeightThe basis for the method: in used pdf implementations the Y origin is bottom based, while in DSS parameters is top-basedMethods in eu.europa.esig.dss.pdf with parameters of type AnnotationBoxModifier and TypeMethodDescriptionprotected voidAbstractPDFSignatureService.assertSignatureFieldPositionValid(PdfDocumentReader documentReader, AnnotationBox annotationBox, int pageNumber) This method verifies validity of the signature field box configuration calling the providedpdfSignatureFieldPositionCheckervoidPdfSignatureFieldPositionChecker.assertSignatureFieldPositionValid(PdfDocumentReader documentReader, AnnotationBox annotationBox, int pageNumber) This method verifies whetherannotationBoxcan be placed withindocumentReaderon the page numberpageNumberprotected voidPdfSignatureFieldPositionChecker.checkSignatureFieldAgainstPageDimensions(AnnotationBox signatureFieldBox, AnnotationBox pageBox) This method verifies whether thesignatureFieldBoxis withinpageBoxprotected voidPdfSignatureFieldPositionChecker.checkSignatureFieldBoxOverlap(AnnotationBox signatureFieldBox, List<PdfAnnotation> pdfAnnotations) This method verifies whether thesignatureFieldBoxoverlaps with one of the extractedpdfAnnotationsbooleanAnnotationBox.isOverlap(AnnotationBox box) Checks if the currentAnnotationBoxoverlaps with the givenboxprotected AnnotationBoxAbstractPDFSignatureService.toPdfPageCoordinates(AnnotationBox fieldAnnotationBox, AnnotationBox pageBox) This method transforms afieldAnnotationBox's positions and dimensions according to the given pageConstructors in eu.europa.esig.dss.pdf with parameters of type AnnotationBox -
Uses of AnnotationBox in eu.europa.esig.dss.pdf.modifications
Methods in eu.europa.esig.dss.pdf.modifications with parameters of type AnnotationBoxModifier and TypeMethodDescriptionbooleanDefaultPdfDifferencesFinder.isAnnotationBoxOverlapping(AnnotationBox annotationBox, List<PdfAnnotation> pdfAnnotations) booleanPdfDifferencesFinder.isAnnotationBoxOverlapping(AnnotationBox annotationBox, List<PdfAnnotation> pdfAnnotations) Checks if the givenannotationBoxoverlaps withpdfAnnotations -
Uses of AnnotationBox in eu.europa.esig.dss.pdf.openpdf
Methods in eu.europa.esig.dss.pdf.openpdf that return AnnotationBoxModifier and TypeMethodDescriptionITextDocumentReader.getPageBox(int page) protected AnnotationBoxITextPDFSignatureService.getVisibleSignatureFieldBoxPosition(PdfDocumentReader reader, SignatureFieldParameters parameters) protected AnnotationBoxITextPDFSignatureService.getVisibleSignatureFieldBoxPosition(SignatureDrawer signatureDrawer, PdfDocumentReader documentReader, SignatureFieldParameters parameters) -
Uses of AnnotationBox in eu.europa.esig.dss.pdf.openpdf.visible
Methods in eu.europa.esig.dss.pdf.openpdf.visible that return AnnotationBoxModifier and TypeMethodDescriptionprotected AnnotationBoxAbstractITextSignatureDrawer.getPageAnnotationBox()Returns the page's boxprotected AnnotationBoxAbstractITextSignatureDrawer.getRotatedAnnotationRelativelyPageRotation(AnnotationBox annotationBox) As OpenPDF does not automatically rotate the provided signature field relatively to the page's rotation, we need to rotate it manuallyprotected AnnotationBoxAbstractITextSignatureDrawer.toAnnotationBox(SignatureFieldDimensionAndPosition dimensionAndPosition) Transforms the givendimensionAndPositionto aAnnotationBoxaccording to the given page sizeMethods in eu.europa.esig.dss.pdf.openpdf.visible with parameters of type AnnotationBoxModifier and TypeMethodDescriptionprotected AnnotationBoxAbstractITextSignatureDrawer.getRotatedAnnotationRelativelyPageRotation(AnnotationBox annotationBox) As OpenPDF does not automatically rotate the provided signature field relatively to the page's rotation, we need to rotate it manuallyprotected com.lowagie.text.RectangleAbstractITextSignatureDrawer.toITextRectangle(AnnotationBox annotationBox) TransformsAnnotationBoxto thecom.lowagie.text.Rectangle -
Uses of AnnotationBox in eu.europa.esig.dss.pdf.pdfbox
Methods in eu.europa.esig.dss.pdf.pdfbox that return AnnotationBox -
Uses of AnnotationBox in eu.europa.esig.dss.pdf.visible
Methods in eu.europa.esig.dss.pdf.visible that return AnnotationBoxModifier and TypeMethodDescriptionAbstractDSSFontMetrics.computeTextBoundaryBox(String text, float fontSize) DSSFontMetrics.computeTextBoundaryBox(String text, float fontSize) Computes a text boundary boxstatic AnnotationBoxImageRotationUtils.ensureNoRotate(AnnotationBox annotationBox, int pageRotation) This method is used to ensure the annotation wrapping box defines correct coordinates relatively the "noRotate" flagSignatureFieldDimensionAndPosition.getAnnotationBox()VisualSignatureFieldAppearance.getAnnotationBox()Creates anAnnotationBoxfrom the SignatureFieldBoxstatic AnnotationBoxImageUtils.getImageBoundaryBox(DSSDocument imageDocument) Returns the AnnotationBox for the given image documentstatic AnnotationBoxImageRotationUtils.rotateRelativelyWrappingBox(AnnotationBox annotationBox, AnnotationBox wrappingBox, int rotation) This method rotates the givenannotationBoxrelatively thewrappingBoxaccording to the givenrotationstatic AnnotationBoxImageRotationUtils.swapDimensions(AnnotationBox annotationBox) This method swaps dimensions of the givenAnnotationBoxMethods in eu.europa.esig.dss.pdf.visible with parameters of type AnnotationBoxModifier and TypeMethodDescriptionstatic AnnotationBoxImageRotationUtils.ensureNoRotate(AnnotationBox annotationBox, int pageRotation) This method is used to ensure the annotation wrapping box defines correct coordinates relatively the "noRotate" flagstatic TextFitter.ResultTextFitter.fitSignatureText(SignatureImageTextParameters textParameters, float properTextSize, DSSFontMetrics fontMetrics, AnnotationBox textBox) Attempts to fit the giventextin the giventextBoxusingmetricsto estimate the text size.static AnnotationBoxImageRotationUtils.rotateRelativelyWrappingBox(AnnotationBox annotationBox, AnnotationBox wrappingBox, int rotation) This method rotates the givenannotationBoxrelatively thewrappingBoxaccording to the givenrotationSignatureFieldDimensionAndPositionBuilder.setSignatureFieldAnnotationBox(AnnotationBox signatureFieldAnnotationBox) This method sets the target annotation box to wrap the signature representation intostatic AnnotationBoxImageRotationUtils.swapDimensions(AnnotationBox annotationBox) This method swaps dimensions of the givenAnnotationBoxConstructors in eu.europa.esig.dss.pdf.visible with parameters of type AnnotationBoxModifierConstructorDescriptionSignatureFieldDimensionAndPositionBuilder(SignatureImageParameters imageParameters, DSSFontMetrics fontMetrics, AnnotationBox pageBox, int pageRotation) Default constructor