Class PDAnnotationSquare

    • Constructor Detail

      • PDAnnotationSquare

        public PDAnnotationSquare()
      • PDAnnotationSquare

        public PDAnnotationSquare​(COSDictionary field)
        Creates a square annotation from a COSDictionary, expected to be a correct object definition.
        Parameters:
        field - the PDF object to represent as a field.
    • Method Detail

      • setCustomAppearanceHandler

        public void setCustomAppearanceHandler​(PDAppearanceHandler appearanceHandler)
        Set a custom appearance handler for generating the annotations appearance streams.
        Parameters:
        appearanceHandler - custom appearance handler
      • constructAppearances

        public void constructAppearances()
        Description copied from class: PDAnnotation
        Create the appearance entry for this annotation. Not having it may prevent display in some viewers. This method is for overriding in subclasses, the default implementation does nothing.
        Specified by:
        constructAppearances in class PDAnnotationSquareCircle
      • constructAppearances

        public void constructAppearances​(PDDocument document)
        Description copied from class: PDAnnotation
        Create the appearance entry for this annotation. Not having it may prevent display in some viewers. This method is for overriding in subclasses, the default implementation does nothing.
        Overrides:
        constructAppearances in class PDAnnotation
        Parameters:
        document - the related document