com.caucho.quercus.lib.pdf
Class PDFWriter

java.lang.Object
  extended by com.caucho.quercus.lib.pdf.PDFWriter

public class PDFWriter
extends java.lang.Object

pdf object oriented API facade


Method Summary
 void addPendingObject(PDFObject obj)
           
 int allocateId(int count)
           
 void beginDocument()
           
 void beginObject(int id)
           
 void endDocument()
           
 void endObject()
           
 void print(double v)
           
 void print(long v)
           
 void print(java.lang.String s)
           
 void println()
           
 void println(double v)
           
 void println(long v)
           
 void println(java.lang.String s)
           
 void setAuthor(java.lang.String author)
           
 void setCreator(java.lang.String creator)
           
 void setTitle(java.lang.String title)
           
 java.lang.String toString()
           
 void write(byte[] buffer, int offset, int length)
           
 void writeCatalog(int catalogId, int rootId, int outlineId, java.util.ArrayList<java.lang.Integer> pagesList, int pageCount)
           
 void writeOutline(PDFOutline outline)
           
 void writePageGroup(int id, int parentId, java.util.ArrayList<PDFPage> pages)
           
 void writeStream(int id, PDFStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setCreator

public void setCreator(java.lang.String creator)

setAuthor

public void setAuthor(java.lang.String author)

setTitle

public void setTitle(java.lang.String title)

beginDocument

public void beginDocument()
                   throws java.io.IOException
Throws:
java.io.IOException

writeCatalog

public void writeCatalog(int catalogId,
                         int rootId,
                         int outlineId,
                         java.util.ArrayList<java.lang.Integer> pagesList,
                         int pageCount)
                  throws java.io.IOException
Throws:
java.io.IOException

writeOutline

public void writeOutline(PDFOutline outline)
                  throws java.io.IOException
Throws:
java.io.IOException

writePageGroup

public void writePageGroup(int id,
                           int parentId,
                           java.util.ArrayList<PDFPage> pages)
                    throws java.io.IOException
Throws:
java.io.IOException

writeStream

public void writeStream(int id,
                        PDFStream stream)
                 throws java.io.IOException
Throws:
java.io.IOException

endDocument

public void endDocument()
                 throws java.io.IOException
Throws:
java.io.IOException

allocateId

public int allocateId(int count)

addPendingObject

public void addPendingObject(PDFObject obj)
                      throws java.io.IOException
Throws:
java.io.IOException

beginObject

public void beginObject(int id)
                 throws java.io.IOException
Throws:
java.io.IOException

endObject

public void endObject()
               throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] buffer,
                  int offset,
                  int length)
           throws java.io.IOException
Throws:
java.io.IOException

print

public void print(java.lang.String s)
           throws java.io.IOException
Throws:
java.io.IOException

println

public void println(java.lang.String s)
             throws java.io.IOException
Throws:
java.io.IOException

println

public void println()
             throws java.io.IOException
Throws:
java.io.IOException

print

public void print(long v)
           throws java.io.IOException
Throws:
java.io.IOException

println

public void println(long v)
             throws java.io.IOException
Throws:
java.io.IOException

print

public void print(double v)
           throws java.io.IOException
Throws:
java.io.IOException

println

public void println(double v)
             throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object