public class PDMarkedContent extends Object
Constructor and Description |
---|
PDMarkedContent(COSName tag,
COSDictionary properties)
Creates a new marked content object.
|
Modifier and Type | Method and 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.
|
String |
getActualText()
Gets the actual text (ActualText).
|
String |
getAlternateDescription()
Gets the alternate description (Alt).
|
List<Object> |
getContents()
Gets the contents of the marked content sequence.
|
String |
getExpandedForm()
Gets the expanded form (E).
|
String |
getLanguage()
Gets the language (Lang).
|
int |
getMCID()
Gets the marked-content identifier.
|
COSDictionary |
getProperties()
Gets the properties.
|
String |
getTag()
Gets the tag.
|
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 String getTag()
public COSDictionary getProperties()
public int getMCID()
public String getLanguage()
public String getActualText()
public String getAlternateDescription()
public String getExpandedForm()
public List<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 XObjectCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.