|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.core.io.AbstractPdfProclet
adams.core.io.CsvPdfProclet
public class CsvPdfProclet
Adds CSV files as table.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-page-break-before (property: pageBreakBefore) If true, then a page-break is added before the content of the file is inserted.
-page-break-after (property: pageBreakAfter) If true, then a page-break is added after the content of the file is inserted.
-num-files <int> (property: numFilesPerPage) The number of files to put on a page before adding an automatic page break; use -1 for unlimited. default: -1 minimum: -1
-add-filename (property: addFilename) Whether to add the file name before the actual file content as separate paragraph.
-font-filename <adams.core.io.PdfFont> (property: fontFilename) The font to use for printing the file name header. default: Helvetica-Bold-12
-color-filename <java.awt.Color> (property: colorFilename) The color to use for printing the file name header. default: #000000
-font-comments <adams.core.io.PdfFont> (property: fontComments) The font to use for the comments. default: Helvetica-Italic-12
-color-comments <java.awt.Color> (property: colorComments) The color to use for the comments. default: #404040
-font-table-header <adams.core.io.PdfFont> (property: fontTableHeader) The font to use for the table header. default: Helvetica-Bold-12
-color-table-header <java.awt.Color> (property: colorTableHeader) The color to use for the table header. default: #000000
-font-general-content <adams.core.io.PdfFont> (property: fontGeneralContent) The font to use for non-numeric content in the table. default: Helvetica-Normal-12
-color-general-content <java.awt.Color> (property: colorGeneralContent) The color to use for general content. default: #000000
-font-numeric-content <adams.core.io.PdfFont> (property: fontNumericContent) The font to use for numeric content in the table. default: Helvetica-Normal-12
-color-numeric-content <java.awt.Color> (property: colorNumericContent) The color to use for numeric content. default: #000000
-num-decimals <int> (property: numDecimals) The number of decimals for numeric values in the table. default: 1 minimum: 0
-extension <adams.core.base.BaseString> [-extension ...] (property: extensions) The file extension(s) that the processor will be used for. default: csv
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class adams.core.io.AbstractPdfProclet |
|---|
AbstractPdfProclet.DocumentState |
| Field Summary | |
|---|---|
protected Color |
m_ColorComments
the color for the comments. |
protected Color |
m_ColorGeneralContent
the color for general content. |
protected Color |
m_ColorNumericContent
the color for the numeric content. |
protected Color |
m_ColorTableHeader
the color for the table header. |
protected BaseString[] |
m_Extensions
the file extensions. |
protected PdfFont |
m_FontComments
the font for the comments. |
protected PdfFont |
m_FontGeneralContent
the font for general content. |
protected PdfFont |
m_FontNumericContent
the font for numeric content. |
protected PdfFont |
m_FontTableHeader
the font for the table header. |
protected int |
m_NumDecimals
the number of decimals for numbers in tables. |
| Fields inherited from class adams.core.io.AbstractPdfProclet |
|---|
m_AddFilename, m_ColorFilename, m_FontFilename, m_NumFilesPerPage, m_PageBreakAfter, m_PageBreakBefore, MATCH_ALL_EXTENSION |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
CsvPdfProclet()
|
|
| Method Summary | |
|---|---|
String |
colorCommentsTipText()
Returns the tip text for this property. |
String |
colorGeneralContentTipText()
Returns the tip text for this property. |
String |
colorNumericContentTipText()
Returns the tip text for this property. |
String |
colorTableHeaderTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected boolean |
doProcess(com.itextpdf.text.Document doc,
AbstractPdfProclet.DocumentState state,
File file)
The actual processing of the document. |
String |
extensionsTipText()
Returns the tip text for this property. |
String |
fontCommentsTipText()
Returns the tip text for this property. |
String |
fontGeneralContentTipText()
Returns the tip text for this property. |
String |
fontNumericContentTipText()
Returns the tip text for this property. |
String |
fontTableHeaderTipText()
Returns the tip text for this property. |
Color |
getColorComments()
Returns the color to use for the comments. |
Color |
getColorGeneralContent()
Returns the color to use for general content. |
Color |
getColorNumericContent()
Returns the color to use for numeric content. |
Color |
getColorTableHeader()
Returns the color to use for the table header. |
BaseString[] |
getExtensions()
Returns the extensions that the processor can process. |
PdfFont |
getFontComments()
Returns the font to use for the comments. |
PdfFont |
getFontGeneralContent()
Returns the font to use for adding the content. |
PdfFont |
getFontNumericContent()
Returns the font to use for adding the content. |
PdfFont |
getFontTableHeader()
Returns the font to use for the table header. |
int |
getNumDecimals()
Returns the number of decimals for numbers in tables. |
String |
globalInfo()
Returns a short description of the writer. |
String |
numDecimalsTipText()
Returns the tip text for this property. |
void |
setColorComments(Color value)
Sets the color to use for the comments. |
void |
setColorGeneralContent(Color value)
Sets the color to use for general content. |
void |
setColorNumericContent(Color value)
Sets the color to use for numeric content. |
void |
setColorTableHeader(Color value)
Sets the color to use for the table header. |
void |
setExtensions(BaseString[] value)
Sets the extensions that the processor can process. |
void |
setFontComments(PdfFont value)
Sets the font to use for the comments. |
void |
setFontGeneralContent(PdfFont value)
Sets the font to use for adding general content. |
void |
setFontNumericContent(PdfFont value)
Sets the font to use for adding general content. |
void |
setFontTableHeader(PdfFont value)
Sets the font to use for the table header. |
void |
setNumDecimals(int value)
Sets the number of decimals for numbers in tables. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PdfFont m_FontComments
protected Color m_ColorComments
protected PdfFont m_FontTableHeader
protected Color m_ColorTableHeader
protected PdfFont m_FontGeneralContent
protected Color m_ColorGeneralContent
protected PdfFont m_FontNumericContent
protected Color m_ColorNumericContent
protected BaseString[] m_Extensions
protected int m_NumDecimals
| Constructor Detail |
|---|
public CsvPdfProclet()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractPdfProcletpublic void setFontComments(PdfFont value)
value - the fontpublic PdfFont getFontComments()
public String fontCommentsTipText()
public void setColorComments(Color value)
value - the colorpublic Color getColorComments()
public String colorCommentsTipText()
public void setFontTableHeader(PdfFont value)
value - the fontpublic PdfFont getFontTableHeader()
public String fontTableHeaderTipText()
public void setColorTableHeader(Color value)
value - the colorpublic Color getColorTableHeader()
public String colorTableHeaderTipText()
public void setFontGeneralContent(PdfFont value)
value - the fontpublic PdfFont getFontGeneralContent()
public String fontGeneralContentTipText()
public void setColorGeneralContent(Color value)
value - the colorpublic Color getColorGeneralContent()
public String colorGeneralContentTipText()
public void setFontNumericContent(PdfFont value)
value - the fontpublic PdfFont getFontNumericContent()
public String fontNumericContentTipText()
public void setColorNumericContent(Color value)
value - the colorpublic Color getColorNumericContent()
public String colorNumericContentTipText()
public BaseString[] getExtensions()
getExtensions in class AbstractPdfProcletpublic void setExtensions(BaseString[] value)
setExtensions in interface VariableFileExtensionPdfProcletvalue - the extensions (no dot)public String extensionsTipText()
extensionsTipText in interface VariableFileExtensionPdfProcletpublic void setNumDecimals(int value)
value - the number of decimalspublic int getNumDecimals()
public String numDecimalsTipText()
protected boolean doProcess(com.itextpdf.text.Document doc,
AbstractPdfProclet.DocumentState state,
File file)
throws Exception
doProcess in class AbstractPdfProcletdoc - the PDF document to add the file content tostate - the current document statefile - the file to add
Exception - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||