org.apache.fop.pdf
Class PDFResourceContext
- PDFWritable
public class PDFResourceContext
The PDF resource context.
There is one of these for every page in a PDF document. The object
specifies the dimensions of the page and references a /Resources
object, a contents stream and the page's parent in the page
hierarchy.
Modified by Mark Lillywhite, mark-fop@inomial.com. The Parent
object was being referred to by reference, but all that we
ever used from the Parent was its PDF object ID, and according
to the memory profile this was causing OOM issues. So, we store
only the object ID of the parent, rather than the parent itself.
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
PDFResourceContext
public PDFResourceContext(PDFResources resources)
Creates a new ResourceContext.
resources
- the /Resources object
addAnnotation
public void addAnnotation(PDFObject annot)
set this page's annotation list
annot
- a PDFAnnotList list of annotations
addGState
public void addGState(PDFGState gstate)
A a GState to this resource context.
gstate
- the GState to add
addShading
public void addShading(PDFShading shading)
Add the shading to the current resource context.
shading
- the shading to add
getAnnotations
public PDFAnnotList getAnnotations()
Get the current annotations.
- the current annotation list
getPDFResources
public PDFResources getPDFResources()
Get the resources for this resource context.
- the resources in this resource context
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.