Class PDFAnnotList

  • All Implemented Interfaces:
    PDFWritable

    public class PDFAnnotList
    extends PDFObject
    class representing an object which is a list of annotations. This PDF object is a list of references to /Annot objects. So far we are dealing only with links.
    • Constructor Detail

      • PDFAnnotList

        public PDFAnnotList()
    • Method Detail

      • addAnnot

        public void addAnnot​(PDFObject link)
        add an /Annot object of /Subtype /Link.
        Parameters:
        link - the PDFLink to add.
      • getCount

        public int getCount()
        get the count of /Annot objects
        Returns:
        the number of links
      • toPDFString

        public java.lang.String toPDFString()
        This method returns a String representation of the PDF object. The result is normally converted/encoded to a byte array by toPDF(). Only use this method to implement the serialization if the object can be fully represented as text. If the PDF representation of the object contains binary content use toPDF() or output(OutputStream) instead. This applies to any object potentially containing a string object because string object are encrypted and therefore need to be binary.
        Overrides:
        toPDFString in class PDFObject
        Returns:
        String the String representation