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
| Name | Type | Access | Description |
|---|---|---|---|
empty | boolean | Read | Returns true when no Form XObjects are present. |
names | List<String> | Read | Returns all Form XObject names in iteration order. |
Methods
| Signature | Description |
|---|---|
XFormCollection(xobjectDict: COSDictionary, parser: PDFParser) | Creates a view over an /XObject dictionary, exposing only Form XObjects. |
size() → int | Returns the number of Form XObjects in this collection. |
isEmpty() → boolean | Returns true when no Form XObjects are present. |
get(index: int) → XForm | Returns the XForm at the given 1-based index (Aspose convention). |
get(name: String) → XForm | Returns 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() → boolean | Returns true if next is present. |
next() → XForm |