| java.lang.Object gnu.jpdf.PDFOutput
PDFOutput | public class PDFOutput (Code) | | This class is used to write a PDF document. It acts as a wrapper
to a real OutputStream, but is necessary for certain internal PDF
structures to be built correctly.
author: Peter T. Mount author: Eric Z. Beard, ericzbeard@hotmail.com author: $Author: ezb $ version: $Revision: 1.1.1.1 $, $Date: 2001/10/29 19:51:08 $ |
baos | protected ByteArrayOutputStream baos(Code) | | This is the OutputStream used to write each object to.
We use a separate stream, because we need to keep track of how
many bytes have been written for each object for the xref table to
work correctly.
|
infoID | protected PDFObject infoID(Code) | | This is used to track the /Info object (info)
|
offset | protected int offset(Code) | | This is the current position within the stream
|
offsets | protected Vector offsets(Code) | | This vector contains offsets of each object
|
rootID | protected PDFObject rootID(Code) | | This is used to track the /Root object (catalog)
|
PDFOutput | public PDFOutput(OutputStream os) throws IOException(Code) | | This creates a PDF OutputStream
Parameters: os - The output stream to write the PDF file to. |
close | protected void close() throws IOException(Code) | | This closes the Stream, writing the xref table
|
write | protected void write(PDFObject ob) throws IOException(Code) | | This method writes a PDFObject to the stream.
Parameters: ob - PDFObject Obeject to write exception: IOException - on error |
writeblock | protected void writeblock(int firstid, Vector block) throws IOException(Code) | | Writes a block of references to the PDF file
Parameters: firstid - ID of the first reference in this block Parameters: block - Vector containing the references in this block exception: IOException - on write error |
|
|