|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.pdf.annotations.PdfAnnotation
com.spire.pdf.annotations.PdfFileAnnotation
com.spire.pdf.annotations.PdfAttachmentAnnotation
public class PdfAttachmentAnnotation
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.PdfFileAnnotation |
---|
getAppearance, setAppearance |
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 |
Constructor Detail |
---|
public PdfAttachmentAnnotation(java.awt.geom.Rectangle2D rectangle, java.lang.String fileName)
public PdfAttachmentAnnotation(java.awt.geom.Rectangle2D rectangle, java.lang.String fileName, byte[] data)
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.If both FileName and FileContent private are specified, the FileContent takes precedence.
public PdfAttachmentAnnotation(java.awt.geom.Rectangle2D rectangle, java.lang.String fileName, java.io.InputStream stream)
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.If both FileName and FileContent are private specifiedspecified, the FileContent takes precedence.
Method Detail |
---|
public void setIcon(PdfAttachmentIcon value)
public java.lang.String getFileName()
getFileName
in class PdfFileAnnotation
public void setFileName(java.lang.String value)
setFileName
in class PdfFileAnnotation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |