I am trying to convert OpenOffice documents (ODT, OTT, ODS) to HTML and PDF. My document contains some subscript and superscript text. In the HTML and PDF the text is not rendered properly, there is no subscript or superscript text. I have attached the test files. Each file has basically the same content just a different format.
Hi,
Hi Rob,
Thanks for your patience.
I have tested the scenario of ODT, ODS and ODS files to PDF and HTML format using latest release of Aspose.Words for Java 17.4.0 and Aspose.Cell for Java 17.4.0 in Eclipse Juno project using JDK 1.6 running over Windows 7 (x64) and I am unable to notice any issue. As per my observations, the resultant files are properly being generated. Please note that when performing this conversion, you need to have all required/referenced fonts installed over system.
For your reference, I have also attached the output generated over my end. In case we are unable to notice the issue, please share some further details and information regarding your working environment i.e. Operating System, JDK version etc. We are sorry for this inconvenience.
Java code
// Instantiate Document object
com.aspose.words.Document doc = new com.aspose.words.Document("C:\\pdftest\\OTT.ott");
// Save PDF file
doc.save("C:\\pdftest\\OTT_Converted.pdf", com.aspose.words.SaveFormat.PDF);
//Instantiate Document object
com.aspose.cells.Workbook workbook = new com.aspose.cells.Workbook("C:\\pdftest\\ODS.ods", new com.aspose.cells.LoadOptions(com.aspose.cells.LoadFormat.ODS));
//Save PDF file
workbook.save("C:\\pdftest\\ODS_Cels.pdf", com.aspose.cells.SaveFormat.PDF);
workbook.save("C:\pdftest\ODS_Converted.html", com.aspose.cells.SaveFormat.HTML);
Please take a look at your output files. In the table line 6 the text should be subscript. In line 7 the text should be superscript.
Hi Rob,
Yes, that is what I am referring too. The superscript and subscript text is the wrong size and not aligned in OpenOffice conversions. It does appear correctly in the Microsoft Office conversions.
Hi Rob,
- The problem related to ODT and OTT conversion to PDF and HTML format is logged in our issue tracking system as WORDSJAVA-1532.
- The problem related to ODS file to PDF and HTML is logged as CELLSJAVA-42264.
We are sorry for this inconvenience.
Hi,
The issues you have found earlier (filed as CELLSJAVA-42264) have been fixed in Aspose.Cells for Java 17.5.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as WORDSJAVA-1532) have been fixed in this Aspose.Words for .NET 17.7 update and this Aspose.Words for Java 17.7 update.