Package com.itextpdf.text.pdf.parser
Class MarkedContentInfo
- java.lang.Object
-
- com.itextpdf.text.pdf.parser.MarkedContentInfo
-
public class MarkedContentInfo extends java.lang.ObjectRepresents a Marked Content block in a PDF- Since:
- 5.0.2
-
-
Field Summary
Fields Modifier and Type Field Description private PdfDictionarydictionaryprivate PdfNametag
-
Constructor Summary
Constructors Constructor Description MarkedContentInfo(PdfName tag, PdfDictionary dictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMcid()Gets the MCID value If the Marked Content contains an MCID entry, returns that value.PdfNamegetTag()Get the tag of this marked contentbooleanhasMcid()Determine if an MCID is available
-
-
-
Field Detail
-
tag
private final PdfName tag
-
dictionary
private final PdfDictionary dictionary
-
-
Constructor Detail
-
MarkedContentInfo
public MarkedContentInfo(PdfName tag, PdfDictionary dictionary)
-
-
Method Detail
-
getTag
public PdfName getTag()
Get the tag of this marked content- Returns:
- the tag of this marked content
-
hasMcid
public boolean hasMcid()
Determine if an MCID is available- Returns:
- true if the MCID is available, false otherwise
-
getMcid
public int getMcid()
Gets the MCID value If the Marked Content contains an MCID entry, returns that value. Otherwise, aNullPointerExceptionis thrown.- Returns:
- the MCID value
- Throws:
java.lang.NullPointerException- if there is no MCID (seehasMcid())
-
-