public class PageList extends NativeObject implements java.util.List<Page>
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Page element) |
boolean |
add(Page element) |
boolean |
addAll(java.util.Collection<? extends Page> elements) |
boolean |
addAll(int index,
java.util.Collection<? extends Page> elements) |
void |
clear() |
boolean |
contains(java.lang.Object object) |
boolean |
containsAll(java.util.Collection<?> objects) |
static PageList |
copy(Document targetDocument,
PageList pageList,
PageCopyOptions options)
Copy a page list
|
static PageList |
createDynamicObject(long handle) |
Page |
get(int index) |
int |
indexOf(java.lang.Object obj) |
boolean |
isEmpty() |
java.util.Iterator<Page> |
iterator() |
int |
lastIndexOf(java.lang.Object obj) |
java.util.ListIterator<Page> |
listIterator() |
java.util.ListIterator<Page> |
listIterator(int index) |
Page |
remove(int index) |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection<?> objects) |
boolean |
retainAll(java.util.Collection<?> objects) |
Page |
set(int index,
Page element) |
int |
size() |
PageList |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
equals, hashCode
public static PageList createDynamicObject(long handle)
public static PageList copy(Document targetDocument, PageList pageList, PageCopyOptions options) throws java.io.IOException, CorruptException, ConformanceException
targetDocument
.
The returned list is associated with the given target document but not yet part of it.
It can be appended to the document's page list.targetDocument
- the output document with which the returned object is associatedpageList
- a page list of a different documentoptions
- the copy optionsjava.io.IOException
- Error reading from the source document or writing to the target documentCorruptException
- The source document is corruptConformanceException
- The conformance level of the source document is not compatible
with the conformance level of the target document.ConformanceException
- The explicitly requested conformance level is PDF/A Level A
(Conformance.PDF_A1_A
, Conformance.PDF_A2_A
,
or Conformance.PDF_A3_A
)
and the copy option PageCopyOptions.getCopyLogicalStructure()
is not set.java.lang.IllegalArgumentException
- if the targetDocument
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- if the pageList
object is not associated with an input documentjava.lang.IllegalArgumentException
- if the argument options
has PageCopyOptions.getFormFields()
set to forms.FormFieldCopyStrategy.COPY
and the targetDocument
contains form fields that have either been copied explicitly
with forms.FieldNode.copy
or created with forms.CheckBox.create
,
forms.ComboBox.create
, forms.CombTextField.create
,
forms.GeneralTextField.create
, forms.ListBox.create
,
forms.RadioButtonGroup.create
, or forms.SubForm.create
.java.lang.IllegalArgumentException
- if the argument options
has PageCopyOptions.getUnsignedSignatures()
set to CopyStrategy.COPY
and the targetDocument
contains form fields that have either been copied explicitly
with forms.FieldNode.copy
or created with forms.CheckBox.create
,
forms.ComboBox.create
, forms.CombTextField.create
,
forms.GeneralTextField.create
, forms.ListBox.create
,
forms.RadioButtonGroup.create
, or forms.SubForm.create
.java.lang.IllegalArgumentException
- if options
has PageCopyOptions.getCopyOutlineItems()
set to true
and the targetDocument
contains outline items that have been copied explicitly
with navigation.OutlineItem.copy
.java.lang.IllegalArgumentException
- if the pageList
argument is null
java.lang.IllegalArgumentException
- if the pageList
object has already been closedpublic boolean addAll(java.util.Collection<? extends Page> elements)
public boolean addAll(int index, java.util.Collection<? extends Page> elements)
addAll
in interface java.util.List<Page>
public boolean contains(java.lang.Object object)
public boolean containsAll(java.util.Collection<?> objects)
public boolean isEmpty()
public java.util.Iterator<Page> iterator()
public java.util.ListIterator<Page> listIterator()
listIterator
in interface java.util.List<Page>
public java.util.ListIterator<Page> listIterator(int index)
listIterator
in interface java.util.List<Page>
public boolean remove(java.lang.Object object)
public boolean removeAll(java.util.Collection<?> objects)
public boolean retainAll(java.util.Collection<?> objects)
public PageList subList(int fromIndex, int toIndex)
subList
in interface java.util.List<Page>
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] array)
public int size()
public void clear()
public int indexOf(java.lang.Object obj)
indexOf
in interface java.util.List<Page>
public int lastIndexOf(java.lang.Object obj)
lastIndexOf
in interface java.util.List<Page>
public boolean add(Page element)