public class TagReference extends Object
See TagTreePointer.getTagReference(int) and PdfCanvas.openTag(TagReference).
| Modifier and Type | Field and Description |
|---|---|
protected int |
insertIndex |
protected PdfDictionary |
properties |
protected PdfStructElem |
referencedTag |
protected PdfName |
role |
protected TagTreePointer |
tagPointer |
| Modifier | Constructor and Description |
|---|---|
protected |
TagReference(PdfStructElem referencedTag,
TagTreePointer tagPointer,
int insertIndex)
Creates a
TagReference instance which represents a reference to PdfStructElem. |
| Modifier and Type | Method and Description |
|---|---|
TagReference |
addProperty(PdfName name,
PdfObject value)
Adds property, which will be associated with marked-content sequence.
|
int |
createNextMcid()
Creates next marked content identifier, which will be used to mark content in PDF stream.
|
PdfDictionary |
getProperties()
Gets properties, which will be associated with marked-content sequence as
PdfDictionary. |
PdfObject |
getProperty(PdfName name)
Gets property which related to specified name.
|
PdfName |
getRole()
Gets role of structure element.
|
TagReference |
removeProperty(PdfName name)
Removes property.
|
protected TagTreePointer tagPointer
protected int insertIndex
protected PdfStructElem referencedTag
protected PdfName role
protected PdfDictionary properties
protected TagReference(PdfStructElem referencedTag, TagTreePointer tagPointer, int insertIndex)
TagReference instance which represents a reference to PdfStructElem.referencedTag - a structure element to which marked content will link (if insertIndex is -1,
otherwise to MC will link to kid with insertIndex of passed structure element)tagPointer - the tag pointer to structure elementinsertIndex - if insertIndex is -1, the referencedTag will be used as a
source of reference, otherwise the kid will be usedpublic PdfName getRole()
public int createNextMcid()
public TagReference addProperty(PdfName name, PdfObject value)
name - the name of the propertyvalue - the value of the propertyTagReference instancepublic TagReference removeProperty(PdfName name)
name - the name of property to be deletedTagReference instancepublic PdfObject getProperty(PdfName name)
name - the name of the propertypublic PdfDictionary getProperties()
PdfDictionary.Copyright © 1998–2023 Apryse Group NV. All rights reserved.