Example usage for Java org.apache.pdfbox.pdmodel PDResources fields, constructors, methods, implement or subclass
The text is from its open source code.
PDResources() Constructor for embedding. | |
PDResources(COSDictionary resourceDictionary) Constructor for reading. |
COSName | add(PDXObject xobject, String prefix) Adds the given XObject to the resources of the current page and returns the name for the new resources. |
COSDictionary | getCOSObject() Returns the underlying dictionary. |
PDFont | getFont(COSName name) Returns the font resource with the given name, or null if none exists. |
Iterable | getFontNames() Returns the names of the font resources, if any. |
PDXObject | getXObject(COSName name) Returns the XObject resource with the given name, or null if none exists. |
Iterable | getXObjectNames() Returns the names of the XObject resources, if any. |
boolean | isImageXObject(COSName name) Tells whether the XObject resource with the given name is an image. |
void | put(COSName name, PDFont font) Sets the font resource with the given name. |
void | put(COSName name, PDColorSpace colorSpace) Sets the color space resource with the given name. |
void | put(COSName name, PDExtendedGraphicsState extGState) Sets the extended graphics state resource with the given name. |
void | put(COSName name, PDShading shading) Sets the shading resource with the given name. |
void | put(COSName name, PDAbstractPattern pattern) Sets the pattern resource with the given name. |
void | put(COSName name, PDPropertyList properties) Sets the property list resource with the given name. |
void | put(COSName name, PDXObject xobject) Sets the XObject resource with the given name. |