|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.io.PDFGenerator
public class PDFGenerator
A helper class for PDF generation.
| Nested Class Summary | |
|---|---|
static class |
PDFGenerator.PageOrientation
The orientation in the document. |
static class |
PDFGenerator.PageSize
Enumeration of all possible page sizes. |
| Field Summary | |
|---|---|
protected com.itextpdf.text.Document |
m_Document
the documentation that is being worked on. |
protected PlaceholderFile |
m_Output
the output file. |
protected PDFGenerator.PageOrientation |
m_PageOrientation
the page orientation. |
protected PDFGenerator.PageSize |
m_PageSize
the page size. |
protected AbstractPdfProclet[] |
m_Proclets
the PDF processors. |
protected AbstractPdfProclet.DocumentState |
m_State
the document state. |
| Constructor Summary | |
|---|---|
PDFGenerator()
Initializes the PDF generator. |
|
| Method Summary | |
|---|---|
void |
addFile(File file)
Adds the file. |
void |
addFiles(File[] files)
Adds the files. |
void |
close()
Closes the document again. |
protected com.itextpdf.text.Rectangle |
determinePageSize()
Returns the PageSize object based on the current setup. |
PlaceholderFile |
getOutput()
Returns the output file. |
PDFGenerator.PageOrientation |
getPageOrientation()
Returns the page orientation. |
PDFGenerator.PageSize |
getPageSize()
Returns the page size. |
AbstractPdfProclet[] |
getProclets()
Returns the processors. |
protected boolean |
isOpen()
Checks whether the document is still open. |
void |
open()
Opens the document for writing. |
protected void |
reset()
Resets the variables and counters. |
protected void |
resetState()
Resets the counters. |
protected void |
resetVariables()
Resets the variables. |
void |
setOutput(PlaceholderFile value)
Sets the output file. |
void |
setPageOrientation(PDFGenerator.PageOrientation value)
Sets the page orientation. |
void |
setPageSize(PDFGenerator.PageSize value)
Sets the page size. |
void |
setProclets(AbstractPdfProclet[] value)
Sets the processors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PlaceholderFile m_Output
protected PDFGenerator.PageSize m_PageSize
protected PDFGenerator.PageOrientation m_PageOrientation
protected AbstractPdfProclet[] m_Proclets
protected com.itextpdf.text.Document m_Document
protected AbstractPdfProclet.DocumentState m_State
| Constructor Detail |
|---|
public PDFGenerator()
| Method Detail |
|---|
protected void reset()
protected void resetVariables()
protected void resetState()
public void setPageSize(PDFGenerator.PageSize value)
value - the sizepublic PDFGenerator.PageSize getPageSize()
public void setPageOrientation(PDFGenerator.PageOrientation value)
value - the orientationpublic PDFGenerator.PageOrientation getPageOrientation()
public void setOutput(PlaceholderFile value)
value - the filepublic PlaceholderFile getOutput()
public void setProclets(AbstractPdfProclet[] value)
value - the processorspublic AbstractPdfProclet[] getProclets()
protected com.itextpdf.text.Rectangle determinePageSize()
public void open()
throws Exception
Exception - if opening failsprotected boolean isOpen()
public void addFile(File file)
throws Exception
file - the file to add
Exception - if adding fails
public void addFiles(File[] files)
throws Exception
files - the files to add
Exception - if adding failspublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||