PDF4Java Reference Documentation
com.o2sol.pdf4java.core.cos Package / PDFCosArray Class / insert Method
The zero-based index at which item should be inserted.
The object to insert.
Collapse All Expand All
In This Topic

insert Method
In This Topic
Inserts an element into the array at the specified index.
Syntax

    public void insert(
       int index,
       PDFCosObject item
    )

#### Parameters

index
  The zero-based index at which item should be inserted.
item
  The object to insert.

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.