PDF4Java Reference Documentation
com.o2sol.pdf4java.core.cos Package / PDFCosArray Class / set Method
Index of element to set.
Item to set in the array
Collapse All Expand All
In This Topic

set Method
In This Topic
Sets the element at the specified index.
Syntax

    public void set(
       int index,
       PDFCosObject item
    )

#### Parameters

index
  Index of element to set.
item
  Item to set in the array

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | Thrown when the item is null

See Also

#### Reference

PDFCosArray Class
PDFCosArray Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.