public class PDResources extends PDObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PDResources.MetaClass
The meta class implementation
|
| Modifier and Type | Field and Description |
|---|---|
static COSName |
CN_RT_ColorSpace |
static COSName |
CN_RT_Encoding |
static COSName |
CN_RT_ExtGState
the resource types in a resource dictionaries
|
static COSName |
CN_RT_Font |
static COSName |
CN_RT_Pattern |
static COSName |
CN_RT_ProcSet |
static COSName |
CN_RT_Properties |
static COSName |
CN_RT_Shading |
static COSName |
CN_RT_XObject |
static PDResources.MetaClass |
META
The meta class instance
|
DK_Subtype, DK_Type| Modifier and Type | Method and Description |
|---|---|
void |
addColorSpaceResource(COSName name,
PDColorSpace colorSpace) |
void |
addExtGStateResource(COSName name,
PDExtGState extGState) |
void |
addFontResource(COSName name,
PDFont font) |
void |
addPatternResource(COSName name,
PDPattern pattern) |
void |
addResource(COSName resourceType,
COSName name,
PDObject object) |
void |
addShadingResource(COSName name,
PDShading shading) |
void |
addXObjectResource(COSName name,
PDXObject object) |
void |
cosAddResource(COSName resourceType,
COSName resourceName,
COSObject resource) |
COSName |
cosCreateResource(COSName resourceType,
COSObject resource) |
COSObject |
cosGetResource(COSName resourceType,
COSName resourceName) |
COSDictionary |
cosGetResources(COSName resourceType) |
COSDictionary |
cosInitResources(COSName resourceType) |
void |
cosSetResources(COSName resourceType,
COSDictionary resource) |
COSName |
createColorSpaceResource(PDColorSpace colorSpace)
Return the name of a ColorSpace resource within the resource dictionary.
|
COSName |
createExtGStateResource(PDExtGState gstate)
Return the name of a ExtGState resource within the resource dictionary.
|
COSName |
createFontResource(PDFont font)
Return the name of the font resource within this resource dictionary.
|
COSName |
createResource(COSName resourceType,
PDObject object)
Return the name of a new resource of selected resource type within the
resource dictionary.
|
COSName |
createShadingResource(PDShading shading)
Return the name of a shading resource within the resource dictionary.
|
COSName |
createXObjectResource(PDXObject xobject)
Return the name of a XObject resource within the resource dictionary.
|
PDColorSpace |
getColorSpaceResource(COSName name)
A named ColorSpace resource from the resource dictionary.
|
PDExtGState |
getExtGStateResource(COSName name)
Return a named ExtGState resource from the resource dictionary.
|
PDFont |
getFontResource(COSName name)
Return a named font resource.
|
PDPattern |
getPatternResource(COSName name)
Return a named Pattern resource from the resource dictionary.
|
PDObject |
getResource(COSName resourceType,
PDObject.MetaClass metaClass,
COSName name)
Return a named resource from the resource dictionary.
|
PDShading |
getShadingResource(COSName name)
Return a named Pattern resource from the resource dictionary.
|
PDXObject |
getXObjectResource(COSName name)
Return a named XObject resource from the resource dictionary.
|
void |
invalidateCaches()
Invalidate all local caches as the base object may have changed.
|
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toStringchanged, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldStringpublic static final COSName CN_RT_ColorSpace
public static final COSName CN_RT_Encoding
public static final COSName CN_RT_ExtGState
public static final COSName CN_RT_Font
public static final COSName CN_RT_Pattern
public static final COSName CN_RT_ProcSet
public static final COSName CN_RT_Properties
public static final COSName CN_RT_Shading
public static final COSName CN_RT_XObject
public static final PDResources.MetaClass META
public void addColorSpaceResource(COSName name, PDColorSpace colorSpace)
public void addExtGStateResource(COSName name, PDExtGState extGState)
public void cosAddResource(COSName resourceType, COSName resourceName, COSObject resource)
public COSDictionary cosGetResources(COSName resourceType)
public COSDictionary cosInitResources(COSName resourceType)
public void cosSetResources(COSName resourceType, COSDictionary resource)
public COSName createColorSpaceResource(PDColorSpace colorSpace)
A new entry is created if the resource is not found.
colorSpace - The colorSpace to lookup.public COSName createExtGStateResource(PDExtGState gstate)
A new entry is created if the resource is not found.
gstate - The gstate to lookup.public COSName createFontResource(PDFont font)
A new entry is created if the resource is not found.
font - The font whose name is looked up.public COSName createResource(COSName resourceType, PDObject object)
A new entry is created if the resource is not found.
object - The resource to lookup.public COSName createShadingResource(PDShading shading)
A new entry is created if the resource is not found.
shading - The shading to lookup.public COSName createXObjectResource(PDXObject xobject)
A new entry is created if the resource is not found.
xobject - The object to lookup.public PDColorSpace getColorSpaceResource(COSName name)
name - The name of the ColorSpace resource.public PDExtGState getExtGStateResource(COSName name)
name - The name of the ExtGState resource.public PDFont getFontResource(COSName name)
name - The name of the font resourcepublic PDPattern getPatternResource(COSName name)
name - The name of the Pattern resource.public PDObject getResource(COSName resourceType, PDObject.MetaClass metaClass, COSName name)
name - The name of the resource.public PDShading getShadingResource(COSName name)
name - The name of the Pattern resource.public PDXObject getXObjectResource(COSName name)
name - The name of the XObject resource.public void invalidateCaches()
COSBasedObjectinvalidateCaches in class COSBasedObjectCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.