Class FDFAnnotationTextMarkup

    • Constructor Detail

      • FDFAnnotationTextMarkup

        public FDFAnnotationTextMarkup()
        Default constructor.
      • FDFAnnotationTextMarkup

        public FDFAnnotationTextMarkup​(COSDictionary a)
        Constructor.
        Parameters:
        a - An existing FDF Annotation.
      • FDFAnnotationTextMarkup

        public FDFAnnotationTextMarkup​(org.w3c.dom.Element element)
                                throws java.io.IOException
        Constructor.
        Parameters:
        element - An XFDF element.
        Throws:
        java.io.IOException - If there is an error extracting information from the element.
    • Method Detail

      • setCoords

        public void setCoords​(float[] coords)
        Set the coordinates of individual words or group of words. The quadliterals shall encompasses a word or group of contiguous words in the text underlying the annotation. The coordinates for each quadrilateral shall be given in the order x1 y1 x2 y2 x3 y3 x4 y4.
        Parameters:
        coords - an array of 8 􏰍 n numbers specifying the coordinates of n quadrilaterals.
      • getCoords

        public float[] getCoords()
        Get the coordinates of individual words or group of words.
        Returns:
        the array of 8 􏰍 n numbers specifying the coordinates of n quadrilaterals.
        See Also:
        setCoords(float[])