EmbeddedFileCollection
Overview
EmbeddedFileCollection is a class in Aspose.Pdf FOSS for Java.
Inherits from: Iterable<FileSpecification>.
Collection of embedded files (attachments) in a PDF document.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Returns the number of embedded files. |
Methods
| Signature | Description |
|---|---|
get(index: int) → FileSpecification | Returns the file at the given 1-based index. |
getCount() → int | Returns the number of embedded files. |
size() → int | Returns the number of embedded files (alias). |
add(fs: FileSpecification) | Adds a file specification. |
get(name: String) → FileSpecification | Returns the file specification with the given name. |
delete() | Removes all embedded files. |
delete(index: int) | Removes by 1-based index. |
delete(name: String) | Removes the first embedded file with the given name (Aspose semantics — |
| if a portfolio carries multiple attachments under the same {@code /F}, | |
| only one is removed per call). | |
iterator() → Iterator<FileSpecification> |