PDFWritable
PDFPage
public class PDFResourceContext extends PDFDictionary
entries, order
Constructor | Description |
---|---|
PDFResourceContext(PDFResources resources) |
Creates a new ResourceContext.
|
Modifier and Type | Method | 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.
|
java.util.Set<PDFGState> |
getGStates() |
|
java.util.Set<PDFPattern> |
getPatterns() |
|
PDFResources |
getPDFResources() |
Get the resources for this resource context.
|
java.util.Set<PDFShading> |
getShadings() |
|
java.util.Set<PDFXObject> |
getXObjects() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, toPDF, toPDFString
public PDFResourceContext(PDFResources resources)
resources
- the /Resources objectpublic void addXObject(PDFXObject xObject)
public java.util.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 java.util.Set<PDFGState> getGStates()
public void addShading(PDFShading shading)
shading
- the shading to addpublic java.util.Set<PDFShading> getShadings()
public java.util.Set<PDFPattern> getPatterns()
public void addPattern(PDFPattern pattern)
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.