pdfattachmentannotation-j9官方网址
com.spire.pdf.annotations
class pdfattachmentannotation
java.lang.object
com.spire.pdf.annotations.pdfannotation
com.spire.pdf.annotations.pdffileannotation
com.spire.pdf.annotations.pdfattachmentannotation
- all implemented interfaces:
- ipdfwrapper
public class pdfattachmentannotation
- extends pdffileannotation
represents an attachment annotation.
|
constructor summary |
pdfattachmentannotation(java.awt.geom.rectangle2d rectangle,
java.lang.string filename)
|
pdfattachmentannotation(java.awt.geom.rectangle2d rectangle,
java.lang.string filename,
byte[] data)
initializes a new instance of the class. |
pdfattachmentannotation(java.awt.geom.rectangle2d rectangle,
java.lang.string filename,
java.io.inputstream stream)
initializes a new instance of the class. |
|
method summary |
java.lang.string |
getfilename()
gets the file associated with this annotation. |
void |
setfilename(java.lang.string value)
sets the file associated with this annotation. |
void |
seticon(pdfattachmenticon value)
sets attachment's icon. |
| methods inherited from class com.spire.pdf.annotations.pdfannotation |
getauthor, getborder, getcolor, getdictionary, getflags, getlocation, getmodifieddate, getname, getpage, getrectangle, getsubject, gettext, setauthor, setborder, setcolor, setdictionary, setflags, setmodifieddate, setname, setrectangle, setsubject, settext |
pdfattachmentannotation
public pdfattachmentannotation(java.awt.geom.rectangle2d rectangle,
java.lang.string filename)
pdfattachmentannotation
public pdfattachmentannotation(java.awt.geom.rectangle2d rectangle,
java.lang.string filename,
byte[] data)
- initializes a new instance of the class.
- parameters:
rectangle - bounds of the annotation.filename - a string value specifying the full path to the file to be embedded : the pdf file.data - a byte array specifying the content of the annotation's embedded file.- see also:
if both filename and filecontent private are specified, the filecontent takes precedence.
pdfattachmentannotation
public pdfattachmentannotation(java.awt.geom.rectangle2d rectangle,
java.lang.string filename,
java.io.inputstream stream)
- initializes a new instance of the class.
- parameters:
rectangle - the rectangle.filename - a string value specifying the full path to the file to be embedded : the pdf file.stream - the stream specifying the content of the annotation's embedded file.- see also:
if both filename and filecontent are private specifiedspecified, the filecontent takes precedence.
seticon
public void seticon(pdfattachmenticon value)
- sets attachment's icon.
getfilename
public java.lang.string getfilename()
- gets the file associated with this annotation.
- specified by:
getfilename in class pdffileannotation
setfilename
public void setfilename(java.lang.string value)
- sets the file associated with this annotation.
- specified by:
setfilename in class pdffileannotation