PdfAttachmentCollection
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.common.ReadOnlyListBase, com.groupdocs.watermark.common.RemoveOnlyListBase
public class PdfAttachmentCollection extends RemoveOnlyListBase<PdfAttachment>
Represents a collection of attachments in a pdf document.
This collection contains the items of [PdfAttachment](../../com.groupdocs.watermark.contents/pdfattachment) type.
| Method | Description |
|---|---|
| add(byte[] fileContent, String name, String description) | Adds an attachment to the [PdfContent](../../com.groupdocs.watermark.contents/pdfcontent). |
| removeFromDocument(PdfAttachment item) |
public final void add(byte[] fileContent, String name, String description)
Adds an attachment to the [PdfContent](../../com.groupdocs.watermark.contents/pdfcontent).
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileContent | byte[] | The content of the file to be attached. |
| name | java.lang.String | The name of the file. |
| description | java.lang.String | The description of the file. |
public void removeFromDocument(PdfAttachment item)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | PdfAttachment |
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.