org.apache.fop.pdf
Class PDFXObject

java.lang.Object
  extended byorg.apache.fop.pdf.PDFObject
      extended byorg.apache.fop.pdf.PDFXObject

public class PDFXObject
extends PDFObject

PDF XObject A derivative of the PDF Object, is a PDF Stream that has not only a dictionary but a stream of image data. the dictionary just provides information like the stream length


Field Summary
 
Fields inherited from class org.apache.fop.pdf.PDFObject
generation, number
 
Constructor Summary
PDFXObject(int number, int Xnumber, FopImage img)
          create an Xobject with the given number and name and load the image in the object
PDFXObject(int number, int Xnumber, FopImage img, PDFDocument pdfdoc)
           
 
Method Summary
 int getXNumber()
           
protected  int output(java.io.OutputStream stream)
          represent as PDF
 
Methods inherited from class org.apache.fop.pdf.PDFObject
getNumber, referencePDF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFXObject

public PDFXObject(int number,
                  int Xnumber,
                  FopImage img)
create an Xobject with the given number and name and load the image in the object


PDFXObject

public PDFXObject(int number,
                  int Xnumber,
                  FopImage img,
                  PDFDocument pdfdoc)
Method Detail

getXNumber

public int getXNumber()
Returns:
the PDF XObject number

output

protected int output(java.io.OutputStream stream)
              throws java.io.IOException
represent as PDF

Overrides:
output in class PDFObject
Parameters:
stream - the stream to write the PDF to
Returns:
the number of bytes written
Throws:
java.io.IOException


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.