Class AbstractTextMarkupAnnotationFlattener

    • Field Detail

    • Constructor Detail

      • AbstractTextMarkupAnnotationFlattener

        public AbstractTextMarkupAnnotationFlattener()
    • Method Detail

      • getQuadPointsAsFloatArray

        public static float[] getQuadPointsAsFloatArray​(PdfAnnotation annotation)
        Gets the quadpoints as a float array. if the annotation has no quadpoints, returns the annotation rectangle converted to the same notation as the quadpoints.
        Parameters:
        annotation - the annotation
        Returns:
        the quadpoints as float array
      • getColor

        protected Color getColor​(PdfAnnotation annotation)
        Parameters:
        annotation - the annotation to extract the color from.
        Returns:
        the color or null if the colorspace is invalid
      • convertFloatToQuadPoints

        private static float[] convertFloatToQuadPoints​(Rectangle rectangle)