org.apache.fop.pdf
Class PDFResources
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFResources
- public class PDFResources
- extends PDFObject
class representing a /Resources object.
/Resources object contain a list of references to the fonts for the
document
Constructor Summary |
PDFResources(int number)
create a /Resources object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fonts
protected Map fonts
- /Font objects keyed by their internal name
xObjects
protected List xObjects
patterns
protected List patterns
shadings
protected List shadings
PDFResources
public PDFResources(int number)
- create a /Resources object.
- Parameters:
number
- the object's number
addFont
public void addFont(PDFFont font)
- add font object to resources list.
- Parameters:
font
- the PDFFont to add
addShading
public void addShading(PDFShading theShading)
addPattern
public void addPattern(PDFPattern thePattern)
setXObjects
public void setXObjects(List xObjects)
toPDF
public byte[] toPDF()
- represent the object in PDF
- Returns:
- the PDF
Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.