I'm working to convert the content of an excel (.xlsx) file to html, to the best extent possible...
I tried both Apache Tika and directly Apache POI, but I haven't been able to extract charts or images included in an excel file. I also looked in the XSSFExcelExtractorDecorator class from the Apache Tika sources, but I don't understand how I should use that Decorator class, and I can't find an end-to-end example about this.
Can anybody provide a working example, or a hint for the starting point ?
Thank you.
Everyone, I have some 10 pdf file (No Tables in this files) and i need to convert to Excel.
Is there a way to convert to Excel?
By Googling, Using Apache Poi/aspose we can achieve this. but I am not getting proper way(Code link) for this.
How can I do this using Apache POI/aspose. Any help, suggestion is highly appreciated. Thanks
It seems that the only possible way to do this is using Aspose. Thought we can read the PDF using PDFBox kind of library and write to the excel using apache POI or etc will break the formatting. If we want to convert PDF to Excel with the formatting we need to use aspose.
http://www.aspose.com/
This is a commercial product but you can use the trial version to test your requirement.
http://www.aspose.com/docs/display/pdfjava/Convert+PDF+to+Excel+Workbook
Thanks
I'm using IText libray for do a PDF. This works, but I need generate the same document, but this time in Excel (xls). There's a way to convert a PDF using GWT or IText? If not, how can I do this? I searched and I found a library called JExcel. What is better?
Thanks for attention and help!
How can I open a Microsoft Word docx file in Java? furthermore, how can I open it if it is password protected?
For instance,
File f = new File("hello.docx");
Please try to avoid responding with things such as "you shouldn't do this." I have a good reason for this, so please stick to the question when you answer. thanks a lot!
There is Apache POI project for working with MS Office files. DOCX file is just a zip file with series of XML files inside, so you can unzip the file and work with XML. The XML spec (Open XML) is known.
I haven't personally used it, but it looks like Apache POI will work for you: http://poi.apache.org/
You can use docx4j too. http://www.docx4java.org/trac/docx4j
I have used both docx4j and Apache's POI libraries, if you are working with .docx I would recommend .docx4j. Automated alot of the process of creating a .docx.
There is a great exmaple here : http://java.dzone.com/articles/create-complex-word-docx
on how to create a .docx using the docx4j package.
If the docx is password protected, it won't be a zip file. It will be a compound file. See Overview of Protected Office Open XML Documents
To read a compound file in Java, use POIFS. POIFS is part of POI (docx4j uses it as well, so if you download the docx4j distribution, you'll be able to use the POIFS API)
Once you have decrypted the encrypted package, you can read it using docx4j or POI.
Edit: OK, now docx4j can handle password-protected docx automatically.
Have you tried to open it using the Open Office api? It can work with a lot of documents types.
I used it with MS Excel files .xls ( old version ) format.
Hope this can help you.
Is it possible to do .xlsx to PDF conversions using DOCX4J?
If so, could anyone provide me with some samples please?
If it isn't possible, what alternatives would you suggest?
I don't think you can use DOCX4j to convert your xlsx to PDF.
You just can use DOCX4j to manipulate Excel xlsx, but not PDF. So you also need a java lib for manipulating PDF, I recommond iText