Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts
AnnotationSelector visitor object that provides functionality to work with
annotations. |
void |
accept(ImagePlacementAbsorber visitor)
Accepts
ImagePlacementAbsorber visitor object that provides functionality to work
with image placement objects. |
void |
accept(TextAbsorber visitor)
Accepts
TextAbsorber visitor object that provides functionality to work with text
objects. |
void |
accept(TextFragmentAbsorber visitor)
Accepts
TextFragmentAbsorber visitor object that provides functionality to work with
text objects. |
void |
add_Rename_Namesake(Page entity)
Adds page to collection.
|
Page |
add()
Adds empty page
|
void |
add(Iterable<Page> pages)
Adds to collection all pages from list.
|
void |
add(List<Page> pages)
Adds to collection all pages from list.
|
Page |
add(Page entity)
Adds page to collection.
|
void |
add(Page[] pages)
Adds to collection all pages from array.
|
void |
clear()
Clear page collection.
|
boolean |
contains(Page item)
Determines whether this instance contains the object.
|
void |
copyTo(Page[] array,
int index)
Copyies pages into document.
|
void |
delete()
Deletes all pages from collection.
|
void |
delete(int index)
Delete specified page.
|
void |
delete(Integer[] pages)
Delete pages specified which numbers are specified in array.
|
Page |
findByPdfObject(com.aspose.pdf.engine.data.IPdfObject pdfObject) |
void |
flatten()
Removes all fields located on the pages and place their values instead.
|
void |
freeMemory()
Clears cached data
|
Page |
get_Item(int index)
Gets page by index.
|
Object |
getSyncRoot()
Gets synchronization object of the collection.
|
Page |
getUnrestricted(int index)
Returns page by its index.
|
int |
indexOf(Page entity)
Returns index of the specified page.
|
Page |
insert(int pageNumber)
Insert empty apge into collection at the specified position.
|
void |
insert(int pageNumber,
Iterable<Page> pages)
Inserts pages from the collection into document.
|
void |
insert(int pageNumber,
List<Page> pages)
Inserts pages from the collection into document.
|
Page |
insert(int pageNumber,
Page entity)
Inserts page into page collection at specified place.
|
void |
insert(int pageNumber,
Page[] pages)
Inserts pages of the array into document.
|
boolean |
isEmpty()
Returns TRUE if the collection is empty.
|
boolean |
isReadOnly()
Gets value indicating of collection is readonly.
|
boolean |
isSynchronized()
Returns true of object is synchorinzed.
|
Iterator<Page> |
iterator()
Returns enumerator of pages.
|
boolean |
remove(Page item)
Removes the specified item.
|
int |
size()
Gets count of pages in the document.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int size()
Gets count of pages in the document.
public boolean isEmpty()
Returns TRUE if the collection is empty.
public boolean isSynchronized()
Returns true of object is synchorinzed.
public Object getSyncRoot()
Gets synchronization object of the collection.
public boolean isReadOnly()
Gets value indicating of collection is readonly. Always returns false.
public Page add(Page entity)
Adds page to collection.
entity
- Page which should be added.public void clear()
Clear page collection.
public void delete(int index)
Delete specified page.
index
- Number of page that will be deleted. Pages numbers start from 1.public void delete()
Deletes all pages from collection.
public int indexOf(Page entity)
Returns index of the specified page.
entity
- Page object. Pages numbers start from 1.
Pages numbers start from 1. Returns 0 in case collection doesn't contain the page.
public Page getUnrestricted(int index)
Returns page by its index. Page
index
- Index of requested page. Pages are numbered from 1.public void copyTo(Page[] array, int index)
Copyies pages into document.
array
- Array containing Pages object to insert into document. It must be Object[] or Page[].index
- Starting index where pages will be insertedpublic void accept(AnnotationSelector visitor)
Accepts AnnotationSelector
visitor object that provides functionality to work with
annotations.
visitor
- AnnotationSelector Visitorpublic void delete(Integer[] pages)
Delete pages specified which numbers are specified in array.
pages
- Array of pages to be deleted.public Page insert(int pageNumber)
Insert empty apge into collection at the specified position.
pageNumber
- Position of the new page.public Page add()
Adds empty page
public void add(List<Page> pages)
Adds to collection all pages from list.
pages
- List which contains all pages which must be added.public void add(Iterable<Page> pages)
Adds to collection all pages from list.
pages
- List which contains all pages which must be added.public Page insert(int pageNumber, Page entity)
Inserts page into page collection at specified place.
pageNumber
- Required page index in collection.entity
- Page to be inserted.public Page get_Item(int index)
Gets page by index.
index
- Index of page.public void accept(ImagePlacementAbsorber visitor)
Accepts ImagePlacementAbsorber
visitor object that provides functionality to work
with image placement objects.
visitor
- Image placement object.public void accept(TextFragmentAbsorber visitor)
Accepts TextFragmentAbsorber
visitor object that provides functionality to work with
text objects.
visitor
- Text fragment absorber object.public void accept(TextAbsorber visitor)
Accepts TextAbsorber
visitor object that provides functionality to work with text
objects.
visitor
- Text absorber object.public void add(Page[] pages)
Adds to collection all pages from array.
pages
- Array of pages which will be added.public void insert(int pageNumber, Iterable<Page> pages)
Inserts pages from the collection into document.
pageNumber
- Starting position of the new pages.pages
- Pages collection.public void insert(int pageNumber, List<Page> pages)
Inserts pages from the collection into document.
pageNumber
- Starting position of the new pages.pages
- Pages collection.public void insert(int pageNumber, Page[] pages)
Inserts pages of the array into document.
pageNumber
- Starting number of the new pages.pages
- Array of pages which will be inserted.public void flatten()
Removes all fields located on the pages and place their values instead.
public void freeMemory()
Clears cached data
public void add_Rename_Namesake(Page entity)
Adds page to collection.
entity
- Page which should be added.public boolean contains(Page item)
Determines whether this instance contains the object.
item
- Page instancetrue
if [contains] [the specified item]; otherwise, false
.com.aspose.ms.System.NotSupportedException
- and exceptionpublic boolean remove(Page item)
Removes the specified item.
item
- Page instancecom.aspose.ms.System.NotSupportedException
- an exceptionpublic final Page findByPdfObject(com.aspose.pdf.engine.data.IPdfObject pdfObject)