org.apache.fop.pdf
Class PDFResources

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.

Method Summary
 voidaddFont(PDFFont font)
          add font object to resources list.
 voidaddPattern(PDFPattern thePattern)
           
 voidaddShading(PDFShading theShading)
           
 voidsetXObjects(Vector xObjects)
           
 byte[]toPDF()
          represent the object in PDF

Methods inherited from class org.apache.fop.pdf.PDFObject
getNumber, referencePDF

Constructor Detail

PDFResources

public PDFResources(int number)
create a /Resources object.
Parameters:
number - the object's number
Method Detail

addFont

public void addFont(PDFFont font)
add font object to resources list.
Parameters:
font - the PDFFont to add

addPattern

public void addPattern(PDFPattern thePattern)

addShading

public void addShading(PDFShading theShading)

setXObjects

public void setXObjects(Vector xObjects)

toPDF

public byte[] toPDF()
represent the object in PDF
Returns: the PDF

Association Links

to Class java.util.Hashtable

/Font objects keyed by their internal name

to Class java.util.Vector

to Class java.util.Vector

to Class java.util.Vector