Class PDPropertyList
java.lang.Object
org.apache.pdfbox.pdmodel.markedcontent.PDPropertyList
- All Implemented Interfaces:
COSObjectable
This class represents a property list used for the marked content feature to map a resource name
to a dictionary.
- Since:
- PDF 1.2
- Version:
- $Revision$
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new property list.PDPropertyList
(COSDictionary dict) Creates a new instance based on a givenCOSDictionary
. -
Method Summary
Modifier and TypeMethodDescriptionConvert this standard java object to a COS object.Returns the optional content group belonging to the given resource name.void
putMapping
(COSName name, PDOptionalContentGroup ocg) Puts a mapping from a resource name to an optional content group.
-
Constructor Details
-
PDPropertyList
public PDPropertyList()Creates a new property list. -
PDPropertyList
Creates a new instance based on a givenCOSDictionary
.- Parameters:
dict
- the dictionary
-
-
Method Details
-
getCOSObject
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getOptionalContentGroup
Returns the optional content group belonging to the given resource name.- Parameters:
name
- the resource name- Returns:
- the optional content group or null if the group was not found
-
putMapping
Puts a mapping from a resource name to an optional content group.- Parameters:
name
- the resource nameocg
- the optional content group
-