Method from org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureTreeRoot Detail: |
public PDNameTreeNode getIDTree() {
COSDictionary idTreeDic = (COSDictionary) this.getCOSDictionary()
.getDictionaryObject(COSName.ID_TREE);
if (idTreeDic != null)
{
return new PDNameTreeNode(idTreeDic, PDStructureElement.class);
}
return null;
}
|
public int getParentTreeNextKey() {
return this.getCOSDictionary().getInt(COSName.PARENT_TREE_NEXT_KEY);
}
Returns the next key in the parent tree. |
public Map<String, String> getRoleMap() {
COSBase rm = this.getCOSDictionary().getDictionaryObject(COSName.ROLE_MAP);
if (rm instanceof COSDictionary)
{
try
{
return COSDictionaryMap.convertBasicTypesToMap((COSDictionary) rm);
}
catch (IOException e)
{
e.printStackTrace();
}
}
return new Hashtable< String, String >();
}
|
public void setIDTree(PDNameTreeNode idTree) {
this.getCOSDictionary().setItem(COSName.ID_TREE, idTree);
}
|
public void setRoleMap(Map<String, String> roleMap) {
COSDictionary rmDic = new COSDictionary();
for (String key : roleMap.keySet())
{
rmDic.setName(key, roleMap.get(key));
}
this.getCOSDictionary().setItem(COSName.ROLE_MAP, rmDic);
}
|