pdflayercollection-ag凯发旗舰厅



com.spire.pdf.graphics.layer
class pdflayercollection

java.lang.object
  extended by com.spire.pdf.graphics.layer.pdflayercollection
all implemented interfaces:
ipdfwrapper

public class pdflayercollection
extends java.lang.object
implements ipdfwrapper

represent pdf layer collection.


constructor summary
pdflayercollection( dictoptionalcontentproperties, pdfdocumentbase documentbase,  crosstable)
          construct an instance with the optional content properties dictionary
pdflayercollection(pdfdocumentbase documentbase,  crosstable)
          construct an instance
 
method summary
 pdflayer addlayer(java.lang.string name)
          add a new pdf layer.
 pdflayer addlayer(java.lang.string name, pdfvisibility state)
          add a new pdf layer.
 pdflayer get(int index)
          get the pdf layer of the index.
 int getcount()
          gets the number of pdf layers contained.
 boolean removelayer(java.lang.string name)
          remove the pdf layer.
 boolean removelayer(java.lang.string name, boolean withcontent)
          remove the pdf layer.
 
constructor detail

pdflayercollection

public pdflayercollection(pdfdocumentbase documentbase,
                           crosstable)
construct an instance
parameters:
documentbase - the pdfdocumentbase
crosstable - the pdf cross table

pdflayercollection

public pdflayercollection( dictoptionalcontentproperties,
                          pdfdocumentbase documentbase,
                           crosstable)
construct an instance with the optional content properties dictionary
parameters:
dictoptionalcontentproperties - the optional content properties dictionary
documentbase - the pdfdocumentbase.
crosstable - the pdf cross table
method detail

get

public pdflayer get(int index)
get the pdf layer of the index.
parameters:
index - pdf layer index
returns:
pdf layer

getcount

public int getcount()
gets the number of pdf layers contained.

addlayer

public pdflayer addlayer(java.lang.string name)
add a new pdf layer.
parameters:
name - pdf layer name.
returns:
pdf layer.

addlayer

public pdflayer addlayer(java.lang.string name,
                         pdfvisibility state)
add a new pdf layer.
parameters:
name - pdf layer name.
state - pdf layer's visibility.
returns:
pdf layer.

removelayer

public boolean removelayer(java.lang.string name)
remove the pdf layer.
parameters:
name - pdf layer name.
returns:
true if item is successfully removed; otherwise, false. this method also returns false if item was not found

removelayer

public boolean removelayer(java.lang.string name,
                           boolean withcontent)
remove the pdf layer.
parameters:
name - pdf layer name.
withcontent - if true,remove content with the pdf layer.otherwise,false.
returns:
true if item is successfully removed; otherwise, false. this method also returns false if item was not found


网站地图