Collection

Overview

Collection is a class in Aspose.PDF FOSS for Java.

Represents the {@code /Collection} entry in a PDF Catalog (ISO 32000-1:2008 §12.3.5 — "Collections", also known as PDF portfolios).

This class provides 3 methods for working with Collection objects in Java programs. Available methods include: Collection, add, getCount. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: count.

Properties

NameTypeAccessDescription
countintReadNumber of items currently in the collection.

Methods

SignatureDescription
Collection()Default empty collection.
add(fs: FileSpecification)Adds {@code fs} to the document’s embedded files (a portfolio is, in
essence, a list of embedded files marked with a {@code /Collection}
entry on the catalog).
getCount()intNumber of items currently in the collection.

See Also

 English