org.freehep.graphicsio.pdf
Class PDFWriter
java.lang.Object
|
+--org.freehep.graphicsio.pdf.PDF
|
+--org.freehep.graphicsio.pdf.PDFWriter
- All Implemented Interfaces:
- PDFConstants
- public class PDFWriter
- extends PDF
- implements PDFConstants
This class creates a PDF file/stream.
It keeps track of all logical PDF objects in the PDF file,
will create a cross-reference table and
do some error checking while writing the file.
This class takes care of wrapping both PDFStreams and PDFDictionaries
into PDFObjects.
- Version:
- $Id: PDFWriter.java,v 1.2 2003/05/27 22:35:44 duns Exp $
- Author:
- Mark Donszelmann
Fields inherited from class org.freehep.graphicsio.pdf.PDF |
out |
Fields inherited from interface org.freehep.graphicsio.pdf.PDFConstants |
CAP_BUTT, CAP_ROUND, CAP_SQUARE, dateFormat, EOL, JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND, MODE_CLIP, MODE_FILL, MODE_FILL_CLIP, MODE_FILL_STROKE, MODE_FILL_STROKE_CLIP, MODE_INVISIBLE, MODE_STROKE, MODE_STROKE_CLIP |
Method Summary |
void |
close()
|
void |
close(PDFCatalog catalog)
|
void |
close(PDFDictionary dictionary)
|
void |
close(PDFDocInfo info)
|
void |
close(PDFObject object)
|
void |
close(PDFOutline outline)
|
void |
close(PDFOutlineList list)
|
void |
close(PDFPage page)
|
void |
close(PDFPageTree tree)
|
void |
close(PDFStream stream)
|
void |
close(PDFViewerPreferences prefs)
|
void |
close(String catalogName,
String docInfoName)
|
void |
comment(String comment)
|
void |
object(String name,
int number)
|
void |
object(String name,
Object[] objs)
|
PDFCatalog |
openCatalog(String name,
String pageTree)
|
PDFDictionary |
openDictionary(String name)
|
PDFDocInfo |
openDocInfo(String name)
|
PDFObject |
openObject(String name)
|
PDFOutline |
openOutline(String name,
String title,
String parent,
String prev,
String next)
|
PDFOutlineList |
openOutlineList(String name,
String first,
String next)
|
PDFPage |
openPage(String name,
String parent)
|
PDFPageTree |
openPageTree(String name,
String parent)
|
PDFStream |
openStream(String name)
|
PDFStream |
openStream(String name,
String[] encode)
|
PDFViewerPreferences |
openViewerPreferences(String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFWriter
public PDFWriter(OutputStream out)
throws IOException
PDFWriter
public PDFWriter(OutputStream writer,
String version)
throws IOException
close
public void close(String catalogName,
String docInfoName)
throws IOException
IOException
comment
public void comment(String comment)
throws IOException
IOException
object
public void object(String name,
Object[] objs)
throws IOException
IOException
object
public void object(String name,
int number)
throws IOException
IOException
openObject
public PDFObject openObject(String name)
throws IOException
IOException
close
public void close(PDFObject object)
throws IOException
IOException
openDictionary
public PDFDictionary openDictionary(String name)
throws IOException
IOException
close
public void close(PDFDictionary dictionary)
throws IOException
IOException
openStream
public PDFStream openStream(String name)
throws IOException
IOException
openStream
public PDFStream openStream(String name,
String[] encode)
throws IOException
IOException
close
public void close(PDFStream stream)
throws IOException
IOException
close
public void close()
throws IOException
IOException
openDocInfo
public PDFDocInfo openDocInfo(String name)
throws IOException
IOException
close
public void close(PDFDocInfo info)
throws IOException
IOException
openCatalog
public PDFCatalog openCatalog(String name,
String pageTree)
throws IOException
IOException
close
public void close(PDFCatalog catalog)
throws IOException
IOException
openPageTree
public PDFPageTree openPageTree(String name,
String parent)
throws IOException
IOException
close
public void close(PDFPageTree tree)
throws IOException
IOException
openPage
public PDFPage openPage(String name,
String parent)
throws IOException
IOException
close
public void close(PDFPage page)
throws IOException
IOException
openViewerPreferences
public PDFViewerPreferences openViewerPreferences(String name)
throws IOException
IOException
close
public void close(PDFViewerPreferences prefs)
throws IOException
IOException
openOutlineList
public PDFOutlineList openOutlineList(String name,
String first,
String next)
throws IOException
IOException
close
public void close(PDFOutlineList list)
throws IOException
IOException
openOutline
public PDFOutline openOutline(String name,
String title,
String parent,
String prev,
String next)
throws IOException
IOException
close
public void close(PDFOutline outline)
throws IOException
IOException
Copyright © 2000-2003 FreeHEP, All Rights Reserved.