public class PdfAttachment extends Attachment
Learn more:
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent()
Gets the attached file content.
|
com.aspose.ms.System.IO.Stream |
getContentStream()
Gets a stream from the attached file.
|
String |
getDescription()
Gets the description of the attached file.
|
String |
getName()
Gets the name of the attached file.
|
void |
setContent(byte[] value)
Sets the attached file content.
|
void |
setContentStream(com.aspose.ms.System.IO.Stream stream)
Updates attached file from a stream.
|
void |
setDescription(String value)
Sets the description of the attached file.
|
void |
setName(String value)
Sets the name of the attached file.
|
createWatermarker, createWatermarker, createWatermarker, getDocumentInfo, updateContentpublic byte[] getContent()
Gets the attached file content.
getContent in class Attachmentpublic com.aspose.ms.System.IO.Stream getContentStream()
AttachmentGets a stream from the attached file.
getContentStream in class Attachmentpublic final String getDescription()
Gets the description of the attached file.
public final String getName()
Gets the name of the attached file.
public void setContent(byte[] value)
Sets the attached file content.
setContent in class Attachmentvalue - The attached file content.public void setContentStream(com.aspose.ms.System.IO.Stream stream)
AttachmentUpdates attached file from a stream.
setContentStream in class Attachmentstream - The stream to update attached file from.public final void setDescription(String value)
Sets the description of the attached file.
value - The description of the attached file.public final void setName(String value)
Sets the name of the attached file.
value - The name of the attached file.Copyright © 2026. All rights reserved.