org.foray.pdf.object
Class PDFAnnotList

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by org.foray.pdf.object.PDFAnnotList

public class PDFAnnotList
extends PDFObject

A collection of PDFAnnotation objects that are associated with a PDFPage.


Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFAnnotList(PDFDocument doc)
          Create a PDFAnnotList object.
 
Method Summary
 void addAnnotation(PDFAnnotation annotation)
          Add a PDFAnnotation to the collection.
 void addAnnotationList(PDFAnnotList listToAdd)
          For each item in annotationList, add the item to this.
 String toPDF()
          Represent the object in PDF.
 
Methods inherited from class org.foray.pdf.object.PDFObject
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFAnnotList

public PDFAnnotList(PDFDocument doc)
Create a PDFAnnotList object.

Parameters:
doc - The parent PDF document.
Method Detail

addAnnotation

public void addAnnotation(PDFAnnotation annotation)
Add a PDFAnnotation to the collection.

Parameters:
annotation - The PDFAnnotation to add.

addAnnotationList

public void addAnnotationList(PDFAnnotList listToAdd)
For each item in annotationList, add the item to this.

Parameters:
listToAdd - The PDFAnnotList whose contents are to be added to this.

toPDF

public String toPDF()
Represent the object in PDF.

Returns:
the PDF string


Copyright © 2017. All rights reserved.