ArtifactCollection

ArtifactCollection

Overview

ArtifactCollection is a class in Aspose.PDF FOSS for Java. Inherits from: Iterable<Artifact>.

Represents a collection of {@link Artifact} objects found on a PDF page.

This class provides 9 methods for working with ArtifactCollection objects in Java programs. Available methods include: ArtifactCollection, add, delete, get, iterator, size, toString. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.

Methods

SignatureDescription
ArtifactCollection()Creates an empty artifact collection.
ArtifactCollection(artifacts: List<Artifact>)Creates an artifact collection from an existing list.
get(index: int)ArtifactReturns the artifact at the specified 1-based index.
size()intReturns the number of artifacts in this collection.
add(artifact: Artifact)Adds an artifact to this collection.
delete(index: int)Removes the artifact at the specified 1-based index.
delete(artifact: Artifact)booleanRemoves the specified artifact from this collection.
iterator()Iterator<Artifact>Returns an iterator over the artifacts in this collection.
toString()StringReturns a string representation of this collection.

See Also

 English