Apache FOP and Excel - excel

I ask for help with the next task. It is planned to use Apache FOP to generate various reports, but the question arose whether FOP can generate any format that could be opened in Excel. It is desirable with an example. Thank you in advance.

Kindly let me know your input file format?. If your file is Xml format or .fo format we can extract the excel file using the input file by using with combination apache poi. we can extract the output files in XLS or XLSX format . Else combine open office XML to apache fop code. where it takes alot of effort.

Related

Are excel files stored internally as XML files?

I have come to understand that excel files(.xlsx) files are essentially xml file archives internally. I even tried verifying this by extracting the xlsx file in my local.
So if that's the case, how exactly are excel files stored and what is the structure and how do they work.
I also know they can be parsed by SAX parser of Apache POI API.
Please help

reading XLSB from apache poi

I've read it stated on multiple SO questions that Apache POI 3.16-beta3 has read-only support for xlsb files.
I am using poi 3.17 and cannot find any documentation or examples of this feature. The best I can find is an example of extracting raw text only via XSSFBEventBasedExcelExtractor, but this appears to be quite old (2010?) and I am unsure if this is the referenced capability.
Is there any documentation or examples of using poi to read xlsb files with the read-only parsing alluded to in the comments of this question: Exception reading XLSB File Apache POI java.io.CharConversionException and in an answer to this: Reading data from .xlsb in Clojure by Tim Allison ?
The functionality that Tim was referring to is actually XSSFBEventBasedExcelExtractor, and it was added in Apache POI 3.16. It can be used to extract text-content from the file.
There is currently no functionality to fully read the file content, though.
See also the JavaDoc for this class.

where to convert .xls file to json file inside Nifi data flow?

I am new to NiFi but i want to make a flow in NiFi in which i will take a .xls file from a FTP point and convert it to JSON file and put it in websocket server. But there is no processor regarding Excel. It will we a great help if someone let me know how to do it?
NIFI-2613 This feature is in progress
In the meantime,
First, please try to use the option provided XLS to CSV. Basically use the provided script to convert xls to csv.
Then, follow Nifi CSV to JSON to achieve your goal

What are the differences between jxl vs apache poi vs jexcel?

what are the relevant differences between this libs ? also can tell me anyone about the license of this products ?
i need to generate large files .xlsx files. Until now i used jxl lib in for .xls with a a formated header using jxl.write.WritableCellFormat.
1) JXL is now JExcel.
2) You can get all list of differences between JExcel and Apache POI here
3) Both are free.
4)You should use Apache POI because JExcel does not support .xlsx format.
Difference between JXL and POI is that Java JXL does not support the Excel 2007+ ".xlsx" format; it only supports ".xls" format.
Apache POI supports both with a common design.

Embed document in xlsx file with POI

Is there any way to embed a document (e.g. pdf) in an xlsx file using Apache POI? It seems you can read embedded documents using workbook.getAllEmbedds(), but I can't find a way to insert any when writing a file.
This should help: similar question with answer User has created a patch for Apache poi with which you can include arbitary file into excel sheet patch link here
Hope this helps.

Resources