public class AttachmentManager extends Object
PdfDocument
.
Constructor and Description |
---|
AttachmentManager(InternalPdfDocument internalPdfDocument)
Please get AttachmentManager by
PdfDocument.getAttachment() instead. |
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(String name,
byte[] attachmentData)
Add a new attachment.
|
byte[] |
getAttachmentData(String name)
Gets attachment data from attachment name
|
List<String> |
getAttachments()
A Collection of file attachment names (keys) contained within this PdfDocument.
|
void |
removeAttachment(String name)
Remove an attachment by attachment name
|
public AttachmentManager(InternalPdfDocument internalPdfDocument)
PdfDocument.getAttachment()
instead.internalPdfDocument
- the internal pdf documentpublic final List<String> getAttachments()
public final void addAttachment(String name, byte[] attachmentData)
name
- attachment nameattachmentData
- attachment datapublic final void removeAttachment(String name)
name
- attachment namepublic final byte[] getAttachmentData(String name)
name
- Attachment nameCopyright © 2022–2023 Iron Software. All rights reserved.