Class Attachment_Api
java.lang.Object
com.ironsoftware.ironpdf.internal.staticapi.Attachment_Api
The type Attachment api.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddPdfAttachment(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 voidremovePdfAttachment(InternalPdfDocument internalPdfDocument, String name) Remove attachment by attachment name
- 
Constructor Details- 
Attachment_Apipublic Attachment_Api()
 
- 
- 
Method Details- 
getPdfAttachmentCollectionGets collection of attachments contained within a pdf document- Parameters:
- internalPdfDocument- the internal pdf document
- Returns:
- the pdf attachment collection
 
- 
getPdfAttachmentDataGets attachment data from attachment name- Parameters:
- internalPdfDocument- the internal pdf document
- name- Attachment name
- Returns:
- the byte [ ]
 
- 
addPdfAttachmentpublic static void addPdfAttachment(InternalPdfDocument internalPdfDocument, String name, byte[] attachmentBytes) Add a new attachment- Parameters:
- internalPdfDocument- the internal pdf document
- name- Attachment name
- attachmentBytes- Attachment data
 
- 
removePdfAttachmentRemove attachment by attachment name- Parameters:
- internalPdfDocument- the internal pdf document
- name- Attachment name
 
 
-