pdfpagecollection-ag凯发旗舰厅



com.spire.pdf.widget
class pdfpagecollection

java.lang.object
  extended by com.spire.pdf.widget.pdfpagecollection
all implemented interfaces:
com.spire.ms.system.collections.ienumerable, java.lang.iterable

public class pdfpagecollection
extends java.lang.object
implements com.spire.ms.system.collections.ienumerable

implements routines for manipulation with loaded pages.


constructor summary
pdfpagecollection(pdfdocumentbase document,  crosstable)
           
 
method summary
 pdfpagebase add()
          creates a new page and adds it to the collection.
 pdfpagebase add(java.awt.geom.dimension2d size)
          creates a new page of the specified size and adds it to the collection.
 pdfpagebase add(java.awt.geom.dimension2d size, pdfmargins margins)
          creates a new page of the specified size and with the specified margins and adds it to the collection.
 pdfpagebase add(java.awt.geom.dimension2d size, pdfmargins margins, pdfpagerotateangle rotation)
          creates a new page of the specified size and with the specified margins and adds it to the collection.
 pdfpagebase add(java.awt.geom.dimension2d size, pdfmargins margins, pdfpagerotateangle rotation, int location)
           
 pdfpagebase add(java.awt.geom.dimension2d size, pdfmargins margins, pdfpagerotateangle rotation, pdfpageorientation orientation)
          creates a new page of the specified size and with the specified margins and adds it to the collection.
 pdfpagebase get(int index)
          gets the at the specified index.
 int getcount()
          gets the count.
 int indexof(pdfpagebase page)
          gets the index of the page in the document.
 pdfpagebase insert(int index)
          creates a new page and inserts it at the specified index.
 pdfpagebase insert(int index, java.awt.geom.dimension2d size)
          creates a new page and inserts it at the specified index.
 pdfpagebase insert(int index, java.awt.geom.dimension2d size, pdfmargins margins)
          creates a new page and inserts it at the specified index.
 pdfpagebase insert(int index, java.awt.geom.dimension2d size, pdfmargins margins, pdfpagerotateangle rotation)
          creates a new page and inserts it at the specified index.
 pdfpagebase (int index, java.awt.geom.dimension2d size, pdfmargins margins, pdfpagerotateangle rotation, pdfpageorientation orientation, boolean existspage)
          creates a new page and inserts it at the specified index.
 void rearrange(int[] orderarray)
          rearrange the pages in the loaded document.
 void remove(pdfpagebase page)
          removes the specified page.
 void removeat(int index)
          removes the page at the given specified index.
 
constructor detail

pdfpagecollection

public pdfpagecollection(pdfdocumentbase document,
                          crosstable)
method detail

get

public pdfpagebase get(int index)
gets the at the specified index.

getcount

public int getcount()
gets the count.

add

public pdfpagebase add()
creates a new page and adds it to the collection.
returns:
the created page.

add

public pdfpagebase add(java.awt.geom.dimension2d size)
creates a new page of the specified size and adds it to the collection.
parameters:
size - the size of the new page.
returns:
the created page.

add

public pdfpagebase add(java.awt.geom.dimension2d size,
                       pdfmargins margins)
creates a new page of the specified size and with the specified margins and adds it to the collection.
parameters:
size - the size of the new page.
margins - the margins of the new page.
returns:
the created page.

add

public pdfpagebase add(java.awt.geom.dimension2d size,
                       pdfmargins margins,
                       pdfpagerotateangle rotation)
creates a new page of the specified size and with the specified margins and adds it to the collection.
parameters:
size - the size of the new page.
margins - the margins of the new page.
rotation - the rotation of the new page.
returns:
the created page.

add

public pdfpagebase add(java.awt.geom.dimension2d size,
                       pdfmargins margins,
                       pdfpagerotateangle rotation,
                       int location)

add

public pdfpagebase add(java.awt.geom.dimension2d size,
                       pdfmargins margins,
                       pdfpagerotateangle rotation,
                       pdfpageorientation orientation)
creates a new page of the specified size and with the specified margins and adds it to the collection.
parameters:
size - the size of the page.
margins - the margins of the page.
rotation - the rotation of the new page.
orientation - the orientation of the new page.
returns:
the created page.

insert

public pdfpagebase insert(int index)
creates a new page and inserts it at the specified index.
parameters:
index - the index.
returns:
the created page.

insert

public pdfpagebase insert(int index,
                          java.awt.geom.dimension2d size)
creates a new page and inserts it at the specified index.
parameters:
index - the index.
size - the size of the page.
returns:
the created page.

insert

public pdfpagebase insert(int index,
                          java.awt.geom.dimension2d size,
                          pdfmargins margins)
creates a new page and inserts it at the specified index.
parameters:
index - the index.
size - the size of the page.
margins - the margins of the page.
returns:
the created page.

insert

public pdfpagebase insert(int index,
                          java.awt.geom.dimension2d size,
                          pdfmargins margins,
                          pdfpagerotateangle rotation)
creates a new page and inserts it at the specified index.
parameters:
index - the index.
size - the size of the page.
margins - the margins of the page.
rotation - the rotation of the new page.
returns:
the created page.

removeat

public void removeat(int index)
removes the page at the given specified index.
parameters:
index - index of the page.

remove

public void remove(pdfpagebase page)
removes the specified page.
parameters:
page - the page to be remove.

rearrange

public void rearrange(int[] orderarray)
rearrange the pages in the loaded document.
parameters:
orderarray - the page sequence to arrange the pages.

insert

public pdfpagebase insert(int index,
                          java.awt.geom.dimension2d size,
                          pdfmargins margins,
                          pdfpagerotateangle rotation,
                          pdfpageorientation orientation,
                          boolean existspage)
creates a new page and inserts it at the specified index.
parameters:
index - the index.
size - the size of the page.
margins - the margins of the page.
rotation - the rotation of the new page.
orientation - the orientation of the new page.
returns:
the created page.

indexof

public int indexof(pdfpagebase page)
gets the index of the page in the document.
parameters:
page - the current page.
returns:
index of the page in the document if exists, -1 otherwise.


网站地图