|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.pdf.graphics.layer.PdfLayerCollection
public class PdfLayerCollection
Represent pdf layer collection.
| Constructor Summary | |
|---|---|
PdfLayerCollection(PdfDictionary dictOptionalContentProperties,
PdfDocumentBase documentBase)
Construct an instance with the optional content properties dictionary |
|
PdfLayerCollection(PdfDocumentBase documentBase)
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. |
PdfLayer |
get(java.lang.String name)
Get the pdf layer of name. |
int |
getCount()
Gets the number of pdf layers contained. |
PdfLayerOutline |
newOutline()
Create a new empty pdf layer outline. |
boolean |
removeLayer(PdfLayer layer)
Remove the pdf layer. |
boolean |
removeLayer(PdfLayer layer,
boolean withContent)
Remove the pdf layer. |
boolean |
removeLayer(java.lang.String name)
Remove the pdf layer. |
boolean |
removeLayer(java.lang.String name,
boolean withContent)
Remove the pdf layer. |
| Constructor Detail |
|---|
public PdfLayerCollection(PdfDocumentBase documentBase)
documentBase - The PdfDocumentBase
public PdfLayerCollection(PdfDictionary dictOptionalContentProperties,
PdfDocumentBase documentBase)
dictOptionalContentProperties - The optional content properties dictionarydocumentBase - The PdfDocumentBase.| Method Detail |
|---|
public PdfLayer get(int index)
index - Pdf layer index
public PdfLayer get(java.lang.String name)
name - Pdf layer name
public int getCount()
public PdfLayerOutline newOutline()
public PdfLayer addLayer(java.lang.String name)
name - Pdf layer name.
public PdfLayer addLayer(java.lang.String name,
PdfVisibility state)
name - Pdf layer name.state - Pdf layer's visibility.
public boolean removeLayer(PdfLayer layer)
layer - The pdf layer.
public boolean removeLayer(PdfLayer layer,
boolean withContent)
layer - The pdf layer.withContent - If true,remove content with the pdf layer.Otherwise,false.
public boolean removeLayer(java.lang.String name)
name - Pdf layer name.
public boolean removeLayer(java.lang.String name,
boolean withContent)
name - Pdf layer name.withContent - If true,remove content with the pdf layer.Otherwise,false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||