org.pdfbox.pdmodel.interactive.annotation
Class PDAppearanceStream
java.lang.Object
org.pdfbox.pdmodel.interactive.annotation.PDAppearanceStream
- COSObjectable
public class PDAppearanceStream
extends java.lang.Object
This class represents an appearance for an annotation.
PDAppearanceStream
public PDAppearanceStream(COSStream s)
Constructor.
s
- The cos stream for this appearance.
getBoundingBox
public PDRectangle getBoundingBox()
Get the bounding box for this appearance. This may return null in which
case the Rectangle from the annotation should be used.
- The bounding box for this appearance.
getResources
public PDResources getResources()
This will get the resources for this appearance stream.
- The appearance stream resources.
getStream
public COSStream getStream()
This will return the underlying stream.
setBoundingBox
public void setBoundingBox(PDRectangle rectangle)
This will set the bounding box for this appearance stream.
rectangle
- The new bounding box.
setResources
public void setResources(PDResources resources)
This will set the new resources.
resources
- The new resources.