org.apache.fop.pdf
Class PDFAnnotList
org.apache.fop.pdf.PDFObject
|
+--org.apache.fop.pdf.PDFAnnotList
- 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 Summary |
PDFAnnotList(int number) create a /Annots object. |
Method Summary |
void | addLink(PDFLink link) add an /Annot object of /Subtype /Link. |
int | getCount() get the count of /Annot objects |
byte[] | toPDF() represent the object in PDF |
PDFAnnotList
public PDFAnnotList(int number)
- create a /Annots object.
- Parameters:
- number - the object's number
addLink
public void addLink(PDFLink 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
toPDF
public byte[] toPDF()
- represent the object in PDF
- Returns: the PDF string
to Class java.util.Vector- the /Annot objects