org.apache.fop.pdf

Class PDFAnnotList

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.

Field Summary

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Method Summary

void
addAnnot(PDFObject link)
add an /Annot object of /Subtype /Link.
int
getCount()
get the count of /Annot objects
String
toPDFString()

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, toPDF, toPDFString

Method Details

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 String toPDFString()
Overrides:
toPDFString in interface PDFObject

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.