Class PDMarkedContentReference
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDMarkedContentReference
-
- All Implemented Interfaces:
COSObjectable
public class PDMarkedContentReference extends java.lang.Object implements COSObjectable
A marked-content reference.
-
-
Field Summary
Fields Modifier and Type Field Description private COSDictionary
dictionary
static java.lang.String
TYPE
-
Constructor Summary
Constructors Constructor Description PDMarkedContentReference()
Default constructorPDMarkedContentReference(COSDictionary dictionary)
Constructor for an existing marked content reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description COSDictionary
getCOSObject()
Convert this standard java object to a COS object.int
getMCID()
Gets the marked content identifier.PDPage
getPage()
Gets the page.void
setMCID(int mcid)
Sets the marked content identifier.void
setPage(PDPage page)
Sets the page.java.lang.String
toString()
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
dictionary
private final COSDictionary dictionary
-
-
Constructor Detail
-
PDMarkedContentReference
public PDMarkedContentReference()
Default constructor
-
PDMarkedContentReference
public PDMarkedContentReference(COSDictionary dictionary)
Constructor for an existing marked content reference.- Parameters:
dictionary
- the page dictionary
-
-
Method Detail
-
getCOSObject
public COSDictionary getCOSObject()
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getPage
public PDPage getPage()
Gets the page.- Returns:
- the page
-
setPage
public void setPage(PDPage page)
Sets the page.- Parameters:
page
- the page
-
getMCID
public int getMCID()
Gets the marked content identifier.- Returns:
- the marked content identifier
-
setMCID
public void setMCID(int mcid)
Sets the marked content identifier.- Parameters:
mcid
- the marked content identifier
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-