XFormCollection

XFormCollection

Overview

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

Collection of Form XObjects from a resource dictionary’s /XObject entry (ISO 32000-1:2008, §8.10).

This class provides 8 methods for working with XFormCollection objects in Java programs. Available methods include: XFormCollection, get, getNames, hasNext, isEmpty, iterator, next, size. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: empty, names.

Properties

NameTypeAccessDescription
emptybooleanReadReturns true when no Form XObjects are present.
namesList<String>ReadReturns all Form XObject names in iteration order.

Methods

SignatureDescription
XFormCollection(xobjectDict: COSDictionary, parser: PDFParser)Creates a view over an /XObject dictionary, exposing only Form XObjects.
size()intReturns the number of Form XObjects in this collection.
isEmpty()booleanReturns true when no Form XObjects are present.
get(index: int)XFormReturns the XForm at the given 1-based index (Aspose convention).
get(name: String)XFormReturns the XForm registered under the given resource name (e.g.
getNames()List<String>Returns all Form XObject names in iteration order.
iterator()Iterator<XForm>
hasNext()booleanReturns true if next is present.
next()XForm

See Also