public class PDFResourceContext extends PDFDictionary
entries, order
Constructor and Description |
---|
PDFResourceContext(PDFResources resources)
Creates a new ResourceContext.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(PDFObject annot)
set this page's annotation list
|
void |
addGState(PDFGState gstate)
A a GState to this resource context.
|
void |
addPattern(PDFPattern pattern) |
void |
addShading(PDFShading shading)
Add the shading to the current resource context.
|
void |
addXObject(PDFXObject xObject) |
PDFAnnotList |
getAnnotations()
Get the current annotations.
|
Set<PDFGState> |
getGStates() |
Set<PDFPattern> |
getPatterns() |
PDFResources |
getPDFResources()
Get the resources for this resource context.
|
Set<PDFShading> |
getShadings() |
Set<PDFXObject> |
getXObjects() |
containsKey, get, getChildren, getChildren, keySet, output, put, put, remove, writeDictionary
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, supportsObjectStream, toPDF, toPDFString
public PDFResourceContext(PDFResources resources)
resources
- the /Resources objectpublic void addXObject(PDFXObject xObject)
public Set<PDFXObject> getXObjects()
public PDFResources getPDFResources()
public void addAnnotation(PDFObject annot)
annot
- a PDFAnnotList list of annotationspublic PDFAnnotList getAnnotations()
public void addGState(PDFGState gstate)
gstate
- the GState to addpublic void addShading(PDFShading shading)
shading
- the shading to addpublic Set<PDFShading> getShadings()
public Set<PDFPattern> getPatterns()
public void addPattern(PDFPattern pattern)
Copyright © 2025 Apache Software Foundation. All rights reserved.