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 8584 2006-08-10 23:06:37Z duns $
- 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 |
Constructor Summary |
PDFWriter(java.io.OutputStream out)
|
PDFWriter(java.io.OutputStream writer,
java.lang.String version)
|
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(java.lang.String catalogName,
java.lang.String docInfoName)
|
void |
comment(java.lang.String comment)
|
void |
object(java.lang.String name,
int number)
|
void |
object(java.lang.String name,
java.lang.Object[] objs)
|
PDFCatalog |
openCatalog(java.lang.String name,
java.lang.String pageTree)
|
PDFDictionary |
openDictionary(java.lang.String name)
|
PDFDocInfo |
openDocInfo(java.lang.String name)
|
PDFObject |
openObject(java.lang.String name)
|
PDFOutline |
openOutline(java.lang.String name,
java.lang.String title,
java.lang.String parent,
java.lang.String prev,
java.lang.String next)
|
PDFOutlineList |
openOutlineList(java.lang.String name,
java.lang.String first,
java.lang.String next)
|
PDFPage |
openPage(java.lang.String name,
java.lang.String parent)
|
PDFPageTree |
openPageTree(java.lang.String name,
java.lang.String parent)
|
PDFStream |
openStream(java.lang.String name)
|
PDFStream |
openStream(java.lang.String name,
java.lang.String[] encode)
|
PDFViewerPreferences |
openViewerPreferences(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFWriter
public PDFWriter(java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
PDFWriter
public PDFWriter(java.io.OutputStream writer,
java.lang.String version)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(java.lang.String catalogName,
java.lang.String docInfoName)
throws java.io.IOException
- Throws:
java.io.IOException
comment
public void comment(java.lang.String comment)
throws java.io.IOException
- Throws:
java.io.IOException
object
public void object(java.lang.String name,
java.lang.Object[] objs)
throws java.io.IOException
- Throws:
java.io.IOException
object
public void object(java.lang.String name,
int number)
throws java.io.IOException
- Throws:
java.io.IOException
openObject
public PDFObject openObject(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFObject object)
throws java.io.IOException
- Throws:
java.io.IOException
openDictionary
public PDFDictionary openDictionary(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFDictionary dictionary)
throws java.io.IOException
- Throws:
java.io.IOException
openStream
public PDFStream openStream(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
openStream
public PDFStream openStream(java.lang.String name,
java.lang.String[] encode)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFStream stream)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
openDocInfo
public PDFDocInfo openDocInfo(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFDocInfo info)
throws java.io.IOException
- Throws:
java.io.IOException
openCatalog
public PDFCatalog openCatalog(java.lang.String name,
java.lang.String pageTree)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFCatalog catalog)
throws java.io.IOException
- Throws:
java.io.IOException
openPageTree
public PDFPageTree openPageTree(java.lang.String name,
java.lang.String parent)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFPageTree tree)
throws java.io.IOException
- Throws:
java.io.IOException
openPage
public PDFPage openPage(java.lang.String name,
java.lang.String parent)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFPage page)
throws java.io.IOException
- Throws:
java.io.IOException
openViewerPreferences
public PDFViewerPreferences openViewerPreferences(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFViewerPreferences prefs)
throws java.io.IOException
- Throws:
java.io.IOException
openOutlineList
public PDFOutlineList openOutlineList(java.lang.String name,
java.lang.String first,
java.lang.String next)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFOutlineList list)
throws java.io.IOException
- Throws:
java.io.IOException
openOutline
public PDFOutline openOutline(java.lang.String name,
java.lang.String title,
java.lang.String parent,
java.lang.String prev,
java.lang.String next)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close(PDFOutline outline)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2000-2007 FreeHEP. All Rights Reserved.