Package com.itextpdf.text.pdf.mc
Class StructureMCID
java.lang.Object
com.itextpdf.text.pdf.mc.StructureItem
com.itextpdf.text.pdf.mc.StructureMCID
Object that stores an item that is part of the document structure.
It can refer to a marked-content sequence in a page or an object
reference (in this case the subclass StructureObject is used).
-
Field Summary
FieldsFields inherited from class com.itextpdf.text.pdf.mc.StructureItem
pageref
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a StructurItem using an MCR dictionary.StructureMCID
(PdfIndirectReference pg, PdfNumber mcid) Creates a StructureMCID using an MCID. -
Method Summary
Methods inherited from class com.itextpdf.text.pdf.mc.StructureItem
checkStructParent, getPageref
-
Field Details
-
mcid
protected int mcidThe mcid of the structure element.
-
-
Constructor Details
-
StructureMCID
Creates a StructureMCID using an MCID.- Parameters:
mcid
- an MCID
-
StructureMCID
Creates a StructurItem using an MCR dictionary.- Parameters:
mcr
- an MCR dictionary
-
-
Method Details
-
checkMCID
public int checkMCID(int pg, int mcid) Checks if the MCID in this object corresponds with the stored number- Overrides:
checkMCID
in classStructureItem
- Parameters:
pg
- the page reference that needs to be checkedmcid
- the MCID- Returns:
- 1 in case the MCIDs corresponds with obj, -1 in case the MCID doesn't correspond
-
toString
Creates a String representation of the object.
-