Class ExcelToFoConverter

    • 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 with ExcelToFoConverter

        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)