org.foray.pdf.object
Class PDFAnnotList
java.lang.Object
org.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFAnnotList
public class PDFAnnotList
- extends PDFObject
A collection of PDFAnnotation objects that are associated with a PDFPage.
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 |
PDFAnnotList
public PDFAnnotList(PDFDocument doc)
- Create a PDFAnnotList object.
- Parameters:
doc
- The parent PDF document.
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.