PdfAttachment
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.common.Attachment
public class PdfAttachment extends Attachment
Represents a file attached to a pdf content.
Learn more:
| Method | Description |
|---|---|
| getName() | Gets the name of the attached file. |
| setName(String value) | Sets the name of the attached file. |
| getDescription() | Gets the description of the attached file. |
| setDescription(String value) | Sets the description of the attached file. |
| getContent() | Gets the attached file content. |
| setContent(byte[] value) | Sets the attached file content. |
| setContentStream(System.IO.Stream stream) | |
| getContentStream() |
public final String getName()
Gets the name of the attached file.
Returns: java.lang.String - The name of the attached file.
public final void setName(String value)
Sets the name of the attached file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The name of the attached file. |
public final String getDescription()
Gets the description of the attached file.
Returns: java.lang.String - The description of the attached file.
public final void setDescription(String value)
Sets the description of the attached file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The description of the attached file. |
public byte[] getContent()
Gets the attached file content.
Returns: byte[] - The attached file content.
public void setContent(byte[] value)
Sets the attached file content.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | byte[] | The attached file content. |
public void setContentStream(System.IO.Stream stream)
Updates attached file from a stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | com.aspose.ms.System.IO.Stream |
public System.IO.Stream getContentStream()
Gets a stream from the attached file.
Returns: com.aspose.ms.System.IO.Stream
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.