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).

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