PDF4Java Reference Documentation
com.o2sol.pdf4java Package / PDFPageCollection Class
Collapse All Expand All Members Options: Show All Members Options: Filtered
Include Inherited Members
Include Protected Members
In This Topic

PDFPageCollection Class Methods
In This Topic

For a list of all members of this type, see PDFPageCollection members.

Public Methods

| Name | Description
--- | --- | ---
| add | Adds a new page at the end of the collection.
| clear | Clears the collection. (Inherited from com.o2sol.pdf4java.core.collections.Collection<T>)
| convertListToTree | Converts the internal pages structure from a list to a tree. By default, the library stores the pages in a single list which can become very large if the document has many pages. Some PDF processors have trouble procesing such long lists, so this method transform the internal pages structure into a tree. Note: This method should be called only once before the document is saved and only on documents creates from scratch with the library.
| indexOfCosPage | This method supports the internal library infrastructure and should not be used by external client code.
| remove | Removes an object from the collection. (Inherited from com.o2sol.pdf4java.core.collections.Collection<T>)
| removeAt | Removes the object at the specified index from the collection. (Inherited from com.o2sol.pdf4java.core.collections.Collection<T>)
| set | Replaces an object at the specified index in the collection. (Inherited from com.o2sol.pdf4java.core.collections.Collection<T>)

Top
Protected Methods

| Name | Description
--- | --- | ---
| clearItems | This method supports the internal library infrastructure and should not be used by external client code.
| insertItem | This method supports the internal library infrastructure and should not be used by external client code.
| removeItem | This method supports the internal library infrastructure and should not be used by external client code.
| setItem | This method supports the internal library infrastructure and should not be used by external client code.

Top
See Also

#### Reference

PDFPageCollection Class
com.o2sol.pdf4java Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.