Uses of Class
eu.europa.esig.dss.pdf.AnnotationBox
Package
Description
-
Uses of AnnotationBox in eu.europa.esig.dss.pdf
Modifier and TypeMethodDescriptionprotected AnnotationBox
AbstractPDFSignatureService.buildSignatureFieldBox
(SignatureDrawer signatureDrawer) Returns a SignatureFieldBox.PdfAnnotation.getAnnotationBox()
Returns theAnnotationBox
PdfDocumentReader.getPageBox
(int page) Returns a page box dimensionsprotected AnnotationBox
AbstractPDFSignatureService.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 AnnotationBox
AbstractPDFSignatureService.getVisibleSignatureFieldBoxPosition
(SignatureDrawer signatureDrawer, PdfDocumentReader documentReader, SignatureFieldParameters fieldParameters) Checks validity of the SignatureField position and returns the calculated signature field boxprotected AnnotationBox
AbstractPDFSignatureService.toPdfPageCoordinates
(AnnotationBox fieldAnnotationBox, AnnotationBox pageBox) This method transforms afieldAnnotationBox
's positions and dimensions according to the given pageAnnotationBox.toPdfPageCoordinates
(float pageHeight) Creates a newAnnotationBox
mirrored vertically relatively to the givenpageHeight
The basis for the method: in used pdf implementations the Y origin is bottom based, while in DSS parameters is top-basedModifier and TypeMethodDescriptionprotected void
AbstractPDFSignatureService.assertSignatureFieldPositionValid
(PdfDocumentReader documentReader, AnnotationBox annotationBox, int pageNumber) This method verifies validity of the signature field box configuration calling the providedpdfSignatureFieldPositionChecker
void
PdfSignatureFieldPositionChecker.assertSignatureFieldPositionValid
(PdfDocumentReader documentReader, AnnotationBox annotationBox, int pageNumber) This method verifies whetherannotationBox
can be placed withindocumentReader
on the page numberpageNumber
protected void
PdfSignatureFieldPositionChecker.checkSignatureFieldAgainstPageDimensions
(AnnotationBox signatureFieldBox, AnnotationBox pageBox) This method verifies whether thesignatureFieldBox
is withinpageBox
protected void
PdfSignatureFieldPositionChecker.checkSignatureFieldBoxOverlap
(AnnotationBox signatureFieldBox, List<PdfAnnotation> pdfAnnotations) This method verifies whether thesignatureFieldBox
overlaps with one of the extractedpdfAnnotations
boolean
AnnotationBox.isOverlap
(AnnotationBox box) Checks if the currentAnnotationBox
overlaps with the givenbox
protected AnnotationBox
AbstractPDFSignatureService.toPdfPageCoordinates
(AnnotationBox fieldAnnotationBox, AnnotationBox pageBox) This method transforms afieldAnnotationBox
's positions and dimensions according to the given page -
Uses of AnnotationBox in eu.europa.esig.dss.pdf.modifications
Modifier and TypeMethodDescriptionboolean
DefaultPdfDifferencesFinder.isAnnotationBoxOverlapping
(AnnotationBox annotationBox, List<PdfAnnotation> pdfAnnotations) boolean
PdfDifferencesFinder.isAnnotationBoxOverlapping
(AnnotationBox annotationBox, List<PdfAnnotation> pdfAnnotations) Checks if the givenannotationBox
overlaps withpdfAnnotations
-
Uses of AnnotationBox in eu.europa.esig.dss.pdf.openpdf
Modifier and TypeMethodDescriptionITextDocumentReader.getPageBox
(int page) protected AnnotationBox
ITextPDFSignatureService.getVisibleSignatureFieldBoxPosition
(PdfDocumentReader reader, SignatureFieldParameters parameters) protected AnnotationBox
ITextPDFSignatureService.getVisibleSignatureFieldBoxPosition
(SignatureDrawer signatureDrawer, PdfDocumentReader documentReader, SignatureFieldParameters parameters) -
Uses of AnnotationBox in eu.europa.esig.dss.pdf.openpdf.visible
Modifier and TypeMethodDescriptionprotected AnnotationBox
AbstractITextSignatureDrawer.getPageAnnotationBox()
Returns the page's boxprotected AnnotationBox
AbstractITextSignatureDrawer.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 AnnotationBox
AbstractITextSignatureDrawer.toAnnotationBox
(SignatureFieldDimensionAndPosition dimensionAndPosition) Transforms the givendimensionAndPosition
to aAnnotationBox
according to the given page sizeModifier and TypeMethodDescriptionprotected AnnotationBox
AbstractITextSignatureDrawer.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.Rectangle
AbstractITextSignatureDrawer.toITextRectangle
(AnnotationBox annotationBox) TransformsAnnotationBox
to thecom.lowagie.text.Rectangle
-
Uses of AnnotationBox in eu.europa.esig.dss.pdf.pdfbox
-
Uses of AnnotationBox in eu.europa.esig.dss.pdf.visible
Modifier and TypeMethodDescriptionAbstractDSSFontMetrics.computeTextBoundaryBox
(String text, float fontSize) DSSFontMetrics.computeTextBoundaryBox
(String text, float fontSize) Computes a text boundary boxSignatureFieldDimensionAndPosition.getAnnotationBox()
VisualSignatureFieldAppearance.getAnnotationBox()
Creates anAnnotationBox
from the SignatureFieldBoxstatic AnnotationBox
ImageUtils.getImageBoundaryBox
(DSSDocument imageDocument) Returns the AnnotationBox for the given image documentstatic AnnotationBox
ImageRotationUtils.rotateRelativelyWrappingBox
(AnnotationBox annotationBox, AnnotationBox wrappingBox, int rotation) This method rotates the givenannotationBox
relatively thewrappingBox
according to the givenrotation
static AnnotationBox
ImageRotationUtils.swapDimensions
(AnnotationBox annotationBox) This method swaps dimensions of the givenAnnotationBox
Modifier and TypeMethodDescriptionstatic TextFitter.Result
TextFitter.fitSignatureText
(SignatureImageTextParameters textParameters, float properTextSize, DSSFontMetrics fontMetrics, AnnotationBox textBox) Attempts to fit the giventext
in the giventextBox
usingmetrics
to estimate the text size.static AnnotationBox
ImageRotationUtils.rotateRelativelyWrappingBox
(AnnotationBox annotationBox, AnnotationBox wrappingBox, int rotation) This method rotates the givenannotationBox
relatively thewrappingBox
according to the givenrotation
SignatureFieldDimensionAndPositionBuilder.setSignatureFieldAnnotationBox
(AnnotationBox signatureFieldAnnotationBox) This method sets the target annotation box to wrap the signature representation intostatic AnnotationBox
ImageRotationUtils.swapDimensions
(AnnotationBox annotationBox) This method swaps dimensions of the givenAnnotationBox
ModifierConstructorDescriptionSignatureFieldDimensionAndPositionBuilder
(SignatureImageParameters imageParameters, DSSFontMetrics fontMetrics, AnnotationBox pageBox, int pageRotation) Default constructor