java.lang.Objectcom.pdfjet.PDF
public class PDF
Used to create PDF objects that represent PDF documents.
Constructor Summary | |
---|---|
PDF()
The default constructor - use when reading PDF files. |
|
PDF(java.io.OutputStream os)
Creates a PDF object that represents a PDF document. |
|
PDF(java.io.OutputStream os,
int compliance)
Creates a PDF object that represents a PDF document. |
Method Summary | |
---|---|
void |
addObjects(java.util.Map<java.lang.Integer,PDFobj> objects)
|
int |
addOutlineDict(Bookmark toc)
|
void |
addOutlineItem(int parent,
int i,
Bookmark bm1)
|
void |
addPage(Page page)
|
void |
close()
Writes the PDF object to the output stream and closes it. |
void |
flush()
Writes the PDF object to the output stream. |
java.util.List<PDFobj> |
getPageObjects(java.util.Map<java.lang.Integer,PDFobj> objects)
|
java.util.Map<java.lang.Integer,PDFobj> |
read(java.io.InputStream inputStream)
Returns a list of objects of type PDFobj read from input stream. |
void |
setAuthor(java.lang.String author)
Set the "Author" document property of the PDF file. |
void |
setPageLayout(java.lang.String pageLayout)
|
void |
setPageMode(java.lang.String pageMode)
|
void |
setSubject(java.lang.String subject)
Set the "Subject" document property of the PDF file. |
void |
setTitle(java.lang.String title)
Set the "Title" document property of the PDF file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDF() throws java.lang.Exception
java.lang.Exception
public PDF(java.io.OutputStream os) throws java.lang.Exception
os
- the associated output stream.
java.lang.Exception
public PDF(java.io.OutputStream os, int compliance) throws java.lang.Exception
os
- the associated output stream.compliance
- must be: Compliance.PDF_A_1B
java.lang.Exception
Method Detail |
---|
public void addPage(Page page) throws java.lang.Exception
java.lang.Exception
public void flush() throws java.lang.Exception
java.lang.Exception
public void close() throws java.lang.Exception
java.lang.Exception
public void setTitle(java.lang.String title)
title
- The title of this document.public void setSubject(java.lang.String subject)
subject
- The subject of this document.public void setAuthor(java.lang.String author)
author
- The author of this document.public void setPageLayout(java.lang.String pageLayout)
public void setPageMode(java.lang.String pageMode)
public java.util.Map<java.lang.Integer,PDFobj> read(java.io.InputStream inputStream) throws java.lang.Exception
inputStream
- the PDF input stream.
java.lang.Exception
public void addObjects(java.util.Map<java.lang.Integer,PDFobj> objects) throws java.lang.Exception
java.lang.Exception
public java.util.List<PDFobj> getPageObjects(java.util.Map<java.lang.Integer,PDFobj> objects) throws java.lang.Exception
java.lang.Exception
public int addOutlineDict(Bookmark toc) throws java.lang.Exception
java.lang.Exception
public void addOutlineItem(int parent, int i, Bookmark bm1) throws java.lang.Exception
java.lang.Exception