com.itextpdf.text.pdf.parser
Class MarkedContentInfo

java.lang.Object
  extended by com.itextpdf.text.pdf.parser.MarkedContentInfo

public class MarkedContentInfo
extends Object

Represents a Marked Content block in a PDF

Since:
5.0.2

Constructor Summary
MarkedContentInfo(PdfName tag, PdfDictionary dictionary)
           
 
Method Summary
 int getMcid()
          Gets the MCID value If the Marked Content contains an MCID entry, returns that value.
 PdfName getTag()
          Get the tag of this marked content
 boolean hasMcid()
          Determine if an MCID is available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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, a NullPointerException is thrown.

Returns:
the MCID value
Throws:
NullPointerException - if there is no MCID (see hasMcid())


Copyright © 2013. All Rights Reserved.