@Beta public class ExcelToFoConverter extends AbstractExcelConverter
_formatter
Constructor and Description |
---|
ExcelToFoConverter(Document document) |
ExcelToFoConverter(FoDocumentFacade foDocumentFacade) |
Modifier and Type | Method and Description |
---|---|
protected String |
createPageMaster(float tableWidthIn,
String pageMasterName) |
protected Document |
getDocument() |
float |
getPageMarginInches() |
protected boolean |
isEmptyStyle(CellStyle cellStyle)
Returns false if cell style by itself (without text, i.e.
|
static void |
main(String[] args)
Java main() interface to interact with
ExcelToFoConverter |
static Document |
process(File xlsFile)
Converts Excel file (97-2007) into XSL FO file.
|
protected boolean |
processCell(HSSFWorkbook workbook,
HSSFCell cell,
Element tableCellElement,
int normalWidthPx,
int maxSpannedWidthPx,
float normalHeightPt) |
protected void |
processCellStyle(HSSFWorkbook workbook,
HSSFCellStyle cellStyle,
Element cellTarget,
Element blockTarget) |
protected void |
processCellStyleBorder(HSSFWorkbook workbook,
Element cellTarget,
String type,
short xlsBorder,
short borderColor) |
protected void |
processCellStyleFont(HSSFWorkbook workbook,
Element blockTarget,
HSSFFont font) |
protected void |
processColumnHeaders(HSSFSheet sheet,
int maxSheetColumns,
Element table) |
protected float |
processColumnWidths(HSSFSheet sheet,
int maxSheetColumns,
Element table)
Creates COLGROUP element with width specified for all columns.
|
protected void |
processDocumentInformation(SummaryInformation summaryInformation) |
protected int |
processRow(HSSFWorkbook workbook,
CellRangeAddress[][] mergedRanges,
HSSFRow row,
Element tableRowElement) |
protected Element |
processRowNumber(HSSFRow row) |
protected float |
processSheet(HSSFWorkbook workbook,
HSSFSheet sheet,
Element flow) |
protected boolean |
processSheet(HSSFWorkbook workbook,
int sheetIndex)
Process single sheet (as specified by 0-based sheet index)
|
protected void |
processSheetName(HSSFSheet sheet,
Element flow) |
void |
processWorkbook(HSSFWorkbook workbook) |
void |
setPageMarginInches(float pageMarginInches) |
getColumnName, getColumnWidth, getDefaultColumnWidth, getFontReplacer, getRowName, isOutputColumnHeaders, isOutputHiddenColumns, isOutputHiddenRows, isOutputLeadingSpacesAsNonBreaking, isOutputRowNumbers, isTextEmpty, setFontReplacer, setOutputColumnHeaders, setOutputHiddenColumns, setOutputHiddenRows, setOutputLeadingSpacesAsNonBreaking, setOutputRowNumbers
public ExcelToFoConverter(Document document)
public ExcelToFoConverter(FoDocumentFacade foDocumentFacade)
public static void main(String[] args)
ExcelToFoConverter
Usage: ExcelToHtmlConverter infile outfile
Where infile is an input .xls file ( Word 97-2007) which will be rendered as XSL FO into outfilepublic static Document process(File xlsFile) throws Exception
xlsFile
- file to processException
protected Document getDocument()
getDocument
in class AbstractExcelConverter
public float getPageMarginInches()
protected boolean isEmptyStyle(CellStyle cellStyle)
protected boolean processCell(HSSFWorkbook workbook, HSSFCell cell, Element tableCellElement, int normalWidthPx, int maxSpannedWidthPx, float normalHeightPt)
protected void processCellStyle(HSSFWorkbook workbook, HSSFCellStyle cellStyle, Element cellTarget, Element blockTarget)
protected void processCellStyleBorder(HSSFWorkbook workbook, Element cellTarget, String type, short xlsBorder, short borderColor)
protected void processCellStyleFont(HSSFWorkbook workbook, Element blockTarget, HSSFFont font)
protected void processColumnHeaders(HSSFSheet sheet, int maxSheetColumns, Element table)
protected float processColumnWidths(HSSFSheet sheet, int maxSheetColumns, Element table)
AbstractExcelConverter.isOutputRowNumbers()
==true)protected void processDocumentInformation(SummaryInformation summaryInformation)
protected int processRow(HSSFWorkbook workbook, CellRangeAddress[][] mergedRanges, HSSFRow row, Element tableRowElement)
protected float processSheet(HSSFWorkbook workbook, HSSFSheet sheet, Element flow)
protected boolean processSheet(HSSFWorkbook workbook, int sheetIndex)
public void processWorkbook(HSSFWorkbook workbook)
public void setPageMarginInches(float pageMarginInches)
Copyright © 2020. All rights reserved.