EmbeddedFileCollection

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

NameTypeAccessDescription
countintReadReturns the number of embedded files.

Methods

SignatureDescription
get(index: int)FileSpecificationReturns the file at the given 1-based index.
getCount()intReturns the number of embedded files.
size()intReturns the number of embedded files (alias).
add(fs: FileSpecification)Adds a file specification.
get(name: String)FileSpecificationReturns 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>

See Also