Class PDAnnotationInk

    • Constructor Detail

      • PDAnnotationInk

        public PDAnnotationInk()
        Constructor.
      • PDAnnotationInk

        public PDAnnotationInk​(COSDictionary dict)
        Constructor.
        Parameters:
        dict - The annotations dictionary.
    • Method Detail

      • setInkList

        public void setInkList​(float[][] inkList)
        Sets the paths that make this annotation.
        Parameters:
        inkList - An array of arrays, each representing a stroked path. Each array shall be a series of alternating horizontal and vertical coordinates. If the parameter is null the entry will be removed.
      • getInkList

        public float[][] getInkList()
        Get one or more disjoint paths that make this annotation.
        Returns:
        An array of arrays, each representing a stroked path. Each array shall be a series of alternating horizontal and vertical coordinates.
      • 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.
        Overrides:
        constructAppearances in class PDAnnotation
      • 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