org.pdfbox.pdmodel.fdf

Class FDFAnnotation

Implemented Interfaces:
COSObjectable

public class FDFAnnotation
extends java.lang.Object
implements COSObjectable

This represents an FDF annotation that is part of the FDF document.
Version:
$Revision: 1.3 $
Author:
Ben Litchfield

Constructor Summary

FDFAnnotation()
Default constructor.
FDFAnnotation(COSDictionary a)
Constructor.

Method Summary

COSDictionary
getCOSDictionary()
Convert this standard java object to a COS object.
COSBase
getCOSObject()
Convert this standard java object to a COS object.
Integer
getPage()
This will get the page number or null if it does not exist.
void
setPage(int page)
This will set the page.

Constructor Details

FDFAnnotation

public FDFAnnotation()
Default constructor.

FDFAnnotation

public FDFAnnotation(COSDictionary a)
Constructor.
Parameters:
a - The FDF annotation.

Method Details

getCOSDictionary

public COSDictionary getCOSDictionary()
Convert this standard java object to a COS object.
Returns:
The cos object that matches this Java object.

getCOSObject

public COSBase getCOSObject()
Convert this standard java object to a COS object.
Specified by:
getCOSObject in interface COSObjectable
Returns:
The cos object that matches this Java object.

getPage

public Integer getPage()
This will get the page number or null if it does not exist.
Returns:
The page number.

setPage

public void setPage(int page)
This will set the page.
Parameters:
page - The page number.