Package org.jpedal.io.annotation
Class ImageAnnotation
java.lang.Object
org.jpedal.io.annotation.WritableAnnotation
org.jpedal.io.annotation.ImageAnnotation
Class generates Image Annotations
Note: there is no such thing as an image annotation in the PDF spec, so this class generates a Rubber Stamp annotation with a custom AP stream containing the image.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jpedal.io.annotation.WritableAnnotation
WritableAnnotation.AnnotationType
-
Constructor Summary
ConstructorDescriptionImageAnnotation
(int page, float x0, float y0, float x1, float y1, BufferedImage image) Image Annotation -
Method Summary
Modifier and TypeMethodDescriptiongetAPString
(int parentObj) byte[][]
getResources
(int parentObj) Methods inherited from class org.jpedal.io.annotation.WritableAnnotation
getFormObject, getNonStrokeColor, getPage, getPopupString, getStrokeColor, setNonStrokeColor, setStrokeColor, setTextSize
-
Constructor Details
-
ImageAnnotation
Image Annotation- Parameters:
page
- the page number where annotation to be appeared (starting from 0)x0
- pdf based min x pointy0
- pdf based min y pointx1
- pdf based max x pointy1
- pdf based max y pointimage
- the image to display
-
-
Method Details
-
getDictString
- Overrides:
getDictString
in classWritableAnnotation
- Returns:
- Pdf specified dictionary string
-
getAPString
- Overrides:
getAPString
in classWritableAnnotation
-
getResources
public byte[][] getResources(int parentObj) - Overrides:
getResources
in classWritableAnnotation
-