public class PdfLayerList extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
deliminator |
| Constructor and Description |
|---|
PdfLayerList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addJScommand(String name,
String js) |
boolean |
decodeLayer(String name,
boolean isID)
Used internally only.
|
boolean |
getChangesMade()
show if decoded version match visibility flags which can be altered by
user
|
Object[] |
getDisplayTree() |
Iterator<String> |
getJSCommands() |
int |
getLayersCount()
number of layers setup.
|
Map<String,String> |
getMetaData() |
String |
getNameFromRef(String ref) |
Object[] |
getOCGs()
JS
Gets an array of OCG objects found on a specified page.
|
int |
getOCpageNumber() |
void |
init(PdfObject OCProperties,
PdfObject PropertiesObj,
PdfObjectReader currentPdfFile,
int pageNumber)
add layers and settings to list
|
boolean |
isLayerName(String name)
show if is name of layer (as opposed to just label).
|
boolean |
isLocked(String layerName) |
boolean |
isVisible(PdfObject XObject) |
boolean |
isVisible(String layerName) |
void |
setChangesMade(boolean flag)
used by Javascript to flag that state has changed
|
void |
setVisibleLayers(String[] layerNames)
will display only these layers and hide all others and will override
any constraints.
|
void |
setVisiblity(String layerName,
boolean isVisible) |
boolean |
setZoom(float scaling)
Switch on/off layers based on Zoom.
|
public static final char deliminator
public void init(PdfObject OCProperties, PdfObject PropertiesObj, PdfObjectReader currentPdfFile, int pageNumber)
OCProperties - is of type PdfObjectPropertiesObj - is of type PdfObjectcurrentPdfFile - is of type PdfObjectReaderpageNumber - is of type intpublic void setChangesMade(boolean flag)
flag - is of type booleanpublic Object[] getDisplayTree()
public void setVisibleLayers(String[] layerNames)
layerNames - is of type String[]public boolean decodeLayer(String name, boolean isID)
name - is of type StringisID - is of type booleanpublic boolean setZoom(float scaling)
scaling - is of type floatpublic boolean isVisible(String layerName)
public void setVisiblity(String layerName, boolean isVisible)
public boolean isVisible(PdfObject XObject)
public boolean isLocked(String layerName)
public boolean getChangesMade()
public boolean isLayerName(String name)
name - is of type Stringpublic int getLayersCount()
public Object[] getOCGs()
public int getOCpageNumber()
Copyright © 2017. All rights reserved.