简体   繁体   中英

Converting XLSX to XSL-FO to PDF

Apaches POI has a ExcelToFoConverter class that allows to convert xls files to XSL-FO. Since I use XLSX files, I am worried that I will have data loss when I use this converter. POI does not offer an explicit converter for xlsx files. However, I saw that someone used the ExcelToFoConverter for xlsx files.

  1. Can I just use the mentioned converter class for xlsx files?
  2. If I can't, what are other options?
  3. Or is there a much better solution for converting XLST files to PDF without(!) having a program like LibreOffice or OpenOffice on the server?

For option 3 I have used iText to create PDF files. See the answers to this question for more info.

I wrote an xsl sometime ago that did Excel XML format conversion to XSL FO. It is available in the Cool tools section of the RenderX website.

http://www.renderx.com/files/demos/cooltools/Excel2FO.zip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM