PDArtifactMarkedContent
public class PDMarkedContent
extends java.lang.Object
Constructor | Description |
---|---|
PDMarkedContent(COSName tag,
COSDictionary properties) |
Creates a new marked content object.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addMarkedContent(PDMarkedContent markedContent) |
Adds a marked content to the contents.
|
void |
addText(TextPosition text) |
Adds a text position to the contents.
|
void |
addXObject(PDXObject xobject) |
Adds an XObject to the contents.
|
static PDMarkedContent |
create(COSName tag,
COSDictionary properties) |
Creates a marked-content sequence.
|
java.lang.String |
getActualText() |
Gets the actual text (ActualText).
|
java.lang.String |
getAlternateDescription() |
Gets the alternate description (Alt).
|
java.util.List<java.lang.Object> |
getContents() |
Gets the contents of the marked content sequence.
|
java.lang.String |
getExpandedForm() |
Gets the expanded form (E).
|
java.lang.String |
getLanguage() |
Gets the language (Lang).
|
int |
getMCID() |
Gets the marked-content identifier.
|
COSDictionary |
getProperties() |
Gets the properties.
|
java.lang.String |
getTag() |
Gets the tag.
|
java.lang.String |
toString() |
public PDMarkedContent(COSName tag, COSDictionary properties)
tag
- the tagproperties
- the propertiespublic static PDMarkedContent create(COSName tag, COSDictionary properties)
tag
- the tagproperties
- the propertiespublic java.lang.String getTag()
public COSDictionary getProperties()
public int getMCID()
public java.lang.String getLanguage()
public java.lang.String getActualText()
public java.lang.String getAlternateDescription()
public java.lang.String getExpandedForm()
public java.util.List<java.lang.Object> getContents()
public void addText(TextPosition text)
text
- the text positionpublic void addMarkedContent(PDMarkedContent markedContent)
markedContent
- the marked contentpublic void addXObject(PDXObject xobject)
xobject
- the XObjectpublic java.lang.String toString()
toString
in class java.lang.Object