Class Attachment_Api
java.lang.Object
com.ironsoftware.ironpdf.internal.staticapi.Attachment_Api
The type Attachment api.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPdfAttachment
(InternalPdfDocument internalPdfDocument, String name, byte[] attachmentBytes) Add a new attachmentgetPdfAttachmentCollection
(InternalPdfDocument internalPdfDocument) Gets collection of attachments contained within a pdf documentstatic byte[]
getPdfAttachmentData
(InternalPdfDocument internalPdfDocument, String name) Gets attachment data from attachment namestatic void
removePdfAttachment
(InternalPdfDocument internalPdfDocument, String name) Remove attachment by attachment name
-
Constructor Details
-
Attachment_Api
public Attachment_Api()
-
-
Method Details
-
getPdfAttachmentCollection
Gets collection of attachments contained within a pdf document- Parameters:
internalPdfDocument
- the internal pdf document- Returns:
- the pdf attachment collection
-
getPdfAttachmentData
Gets attachment data from attachment name- Parameters:
internalPdfDocument
- the internal pdf documentname
- Attachment name- Returns:
- the byte [ ]
-
addPdfAttachment
public static void addPdfAttachment(InternalPdfDocument internalPdfDocument, String name, byte[] attachmentBytes) Add a new attachment- Parameters:
internalPdfDocument
- the internal pdf documentname
- Attachment nameattachmentBytes
- Attachment data
-
removePdfAttachment
Remove attachment by attachment name- Parameters:
internalPdfDocument
- the internal pdf documentname
- Attachment name
-