|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpedal.objects.PdfAnnots
public class PdfAnnots
holds data from annotations and provides methods to decode, store and retrieve PdfAnnotations.
| Field Summary | |
|---|---|
static java.util.HashMap |
fields
|
| Constructor Summary | |
|---|---|
PdfAnnots(org.jpedal.io.PdfObjectReader currentPdfFile,
int pageNumber)
sets up annotation object to hold content - (This method is used internally to generate the annotations and should not be called) If pageNumber not needed, pass in null |
|
| Method Summary | |
|---|---|
java.awt.Color |
getAnnotColor(int i)
get color for annotation |
int |
getAnnotCount()
get number of annotations |
java.lang.String |
getAnnotObjectArea(int i)
get area as it is stored in the PDF |
java.util.Map |
getAnnotRawData(int i)
get raw PDF data for annotation - returns null if not in range (first annot is 0, not 1) |
java.util.List |
getAnnotRawDataList()
get all raw PDF data for annotation |
java.lang.String |
getAnnotSubType(int i)
get area as it is stored in the PDF |
java.awt.Color |
getBorderColor(int i)
return color of border or black as default |
java.awt.Stroke |
getBorderStroke(int i)
get stroke to use for border - return null if no border |
java.lang.String |
getField(int i,
java.lang.String field)
a text field |
int |
getPageNumber()
|
boolean |
hasOwnIcon(int i)
show if has own custom icon |
void |
readAnnots(byte[][] annotList)
read the annotation from the page |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.HashMap fields
| Constructor Detail |
|---|
public PdfAnnots(org.jpedal.io.PdfObjectReader currentPdfFile,
int pageNumber)
| Method Detail |
|---|
public final void readAnnots(byte[][] annotList)
public final int getAnnotCount()
public final java.util.Map getAnnotRawData(int i)
public final java.util.List getAnnotRawDataList()
public final boolean hasOwnIcon(int i)
public final java.lang.String getAnnotObjectArea(int i)
public final java.awt.Color getAnnotColor(int i)
public final java.awt.Stroke getBorderStroke(int i)
public final java.lang.String getAnnotSubType(int i)
public java.lang.String getField(int i,
java.lang.String field)
public java.awt.Color getBorderColor(int i)
public int getPageNumber()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||