Package org.apache.poi.hssf.converter
Class ExcelToFoConverter
- java.lang.Object
-
- org.apache.poi.hssf.converter.AbstractExcelConverter
-
- org.apache.poi.hssf.converter.ExcelToFoConverter
-
@Beta public class ExcelToFoConverter extends AbstractExcelConverter
Converts xls files (97-2007) to XSL FO.
-
-
Constructor Summary
Constructors Constructor Description ExcelToFoConverter(FoDocumentFacade foDocumentFacade)
ExcelToFoConverter(org.w3c.dom.Document document)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getPageMarginInches()
static void
main(java.lang.String[] args)
Java main() interface to interact withExcelToFoConverter
static org.w3c.dom.Document
process(java.io.File xlsFile)
Converts Excel file (97-2007) into XSL FO file.void
processWorkbook(HSSFWorkbook workbook)
void
setPageMarginInches(float pageMarginInches)
-
Methods inherited from class org.apache.poi.hssf.converter.AbstractExcelConverter
getFontReplacer, isOutputColumnHeaders, isOutputHiddenColumns, isOutputHiddenRows, isOutputLeadingSpacesAsNonBreaking, isOutputRowNumbers, setFontReplacer, setOutputColumnHeaders, setOutputHiddenColumns, setOutputHiddenRows, setOutputLeadingSpacesAsNonBreaking, setOutputRowNumbers
-
-
-
-
Constructor Detail
-
ExcelToFoConverter
public ExcelToFoConverter(org.w3c.dom.Document document)
-
ExcelToFoConverter
public ExcelToFoConverter(FoDocumentFacade foDocumentFacade)
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
Java main() interface to interact withExcelToFoConverter
Usage: ExcelToHtmlConverter infile outfile
Where infile is an input .xls file ( Word 97-2007) which will be rendered as XSL FO into outfile- Throws:
java.lang.Exception
-
process
public static org.w3c.dom.Document process(java.io.File xlsFile) throws java.lang.Exception
Converts Excel file (97-2007) into XSL FO file.- Parameters:
xlsFile
- file to process- Returns:
- DOM representation of result XSL FO
- Throws:
java.lang.Exception
-
getPageMarginInches
public float getPageMarginInches()
-
processWorkbook
public void processWorkbook(HSSFWorkbook workbook)
-
setPageMarginInches
public void setPageMarginInches(float pageMarginInches)
-
-