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
| Signature | Description |
|---|---|
ArtifactCollection() | Creates an empty artifact collection. |
ArtifactCollection(artifacts: List<Artifact>) | Creates an artifact collection from an existing list. |
get(index: int) → Artifact | Returns the artifact at the specified 1-based index. |
size() → int | Returns 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) → boolean | Removes the specified artifact from this collection. |
iterator() → Iterator<Artifact> | Returns an iterator over the artifacts in this collection. |
toString() → String | Returns a string representation of this collection. |