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 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-basedMethods in eu.europa.esig.dss.pdf with parameters of type AnnotationBoxModifier 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 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 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
Methods in eu.europa.esig.dss.pdf.openpdf that return AnnotationBoxModifier 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
Methods in eu.europa.esig.dss.pdf.openpdf.visible that return AnnotationBoxModifier 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 sizeMethods in eu.europa.esig.dss.pdf.openpdf.visible with parameters of type AnnotationBoxModifier 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
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 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
Methods in eu.europa.esig.dss.pdf.visible with parameters of type AnnotationBoxModifier 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
Constructors in eu.europa.esig.dss.pdf.visible with parameters of type AnnotationBoxModifierConstructorDescriptionSignatureFieldDimensionAndPositionBuilder
(SignatureImageParameters imageParameters, DSSFontMetrics fontMetrics, AnnotationBox pageBox, int pageRotation) Default constructor