Collection

Overview

Collection is a class in Aspose.PDF FOSS for .NET. Inherits from: EmbeddedFileCollection.

PDF Portfolio collection.

This class provides 8 methods for working with Collection objects in .NET programs. Available methods include: Add, Collection, CopyTo, Delete, DeleteByKey, FindByName, GetEnumerator, GetSortedCollection. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Count, DefaultEntry, IsSynchronized, Keys, Schema, SyncRoot.

Properties

NameTypeAccessDescription
DefaultEntrystringReadThe catalog’s default-entry name for this portfolio (/D entry), or empty.
SchemaCollectionSchema?ReadCollection schema (PDF spec §7.11.5).
CountintReadGets the count.
IsSynchronizedboolReadGets the is synchronized.
SyncRootobjectReadGets the sync root.
KeysList<string>ReadThe names of all embedded files in this collection.

Methods

SignatureDescription
Collection()Construct an empty portfolio collection.
GetSortedCollection()Returns the file specifications ordered by the /Collection /Sort dict (PDF spec §7.11.4 Table 73).
Add(file: FileSpecification)Add an embedded file attachment to the document.
CopyTo(array: FileSpecification[], index: int)Calls CopyTo on this Collection instance.
FindByName(name: string)Look up an embedded file by its registered name.
DeleteByKey(key: string)Sibling of Delete(string) using by-key naming.
Delete()Removes all embedded files from the document’s /Names/EmbeddedFiles name tree.
GetEnumerator()Calls GetEnumerator on this Collection instance.

See Also