|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.etymon.pjx.PdfWriter
Writes a PDF document. Most applications do not need to access
methods in this class but should instead go through PdfManager. This class is synchronized.
| Constructor Summary | |
PdfWriter(java.io.File pdfFile)
Creates a writer for a PDF document to be written to a file. |
|
PdfWriter(java.io.OutputStream outputStream)
Creates a writer for a PDF document to be written to an OutputStream. |
|
| Method Summary | |
void |
close()
Closes the PDF document and releases any system resources associated with it. |
long |
writeCopy(PdfReader reader)
Writes an entire PDF document stream to the output PDF document. |
int |
writeHeader()
Writes a PDF header to the document. |
int |
writeObject(PdfObject obj,
int number,
int generation)
Writes a PDF object to the document as an indirect object. |
int |
writeObjectIndirect(PdfObject obj,
int number,
int generation)
Writes a PDF object to the document as an indirect object. |
int |
writeXrefTable(XrefTable xt,
long startxref)
Writes a cross-reference table (and associated trailer) to the document. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PdfWriter(java.io.File pdfFile)
throws java.io.IOException
pdfFile - the file to write the PDF document to.
java.io.IOException
public PdfWriter(java.io.OutputStream outputStream)
throws java.io.IOException
OutputStream. The calling method should
ensure that the specified stream is a buffered stream, if
applicable.
outputStream - the stream to write the PDF document to.
java.io.IOException| Method Detail |
public void close()
throws java.io.IOException
java.io.IOException
public long writeCopy(PdfReader reader)
throws java.io.IOException
reader - the source of the PDF document stream.
java.io.IOException
public int writeHeader()
throws java.io.IOException
java.io.IOException
public int writeObject(PdfObject obj,
int number,
int generation)
throws java.io.IOException
obj - the object to write.number - the object number.generation - the generation number.
java.io.IOException
public int writeObjectIndirect(PdfObject obj,
int number,
int generation)
throws java.io.IOException
obj - the object to write.number - the object number.generation - the generation number.
java.io.IOException
public int writeXrefTable(XrefTable xt,
long startxref)
throws java.io.IOException
xt - the cross-reference table.startxref - the file offset of the beginning of the
cross-reference table.
java.io.IOException
|
Copyright © 1998-2004 Etymon Systems, Inc. The PDF data structures, operators, and specification are |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||