Package org.apache.fop.pdf
Class PDFAnnotList
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFAnnotList
- All Implemented Interfaces:
PDFWritable
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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add an /Annot object of /Subtype /Link.void
getChildren
(Set<PDFObject> children) int
getCount()
get the count of /Annot objectsThis method returns a String representation of the PDF object.Methods inherited from class org.apache.fop.pdf.PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF
-
Constructor Details
-
PDFAnnotList
public PDFAnnotList()
-
-
Method Details
-
addAnnot
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
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 classPDFObject
- Returns:
- String the String representation
-
getChildren
- Overrides:
getChildren
in classPDFObject
-