Doc to html: junk character on numbered list

Hi,

On HTML to DOC(X), I got some junk characters before numbered list. I have attached my result document.

<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 2.4  (Linux)">
<style type="text/css">
<!--
	@page { size: 21cm 29.7cm; margin: 2cm }
	P { margin-bottom: 0.21cm }
-->
</style>

And I my source HTML I have the following.

  1. sample txt…

  2. sample txt…

  3. sample txt…

However this issue didn’t happen with the previous Aspose release.

I did tried all saveoptions. Do I need to be aware any thing else before the conversion?

thanks,
karthik

Hi

Thanks for your request. I cannot reproduce the problem on my side. I tried using InsertHtml method and just creating Docuent from Html. Which version of Aspose.Words do you use? I use the latest version of testing (6.4.0).
Please provide me code that allows reproducing the problem.
Best regards.

Hi,

I don;t know how to view the version. I just downloaded the latest version from here
https://releases.aspose.com/total/java/

I still able to reproduce the issue.

here is my code.

Document document = new Document(srcDoc, LoadFormat.HTML, "");
document.save(htmlDocPath, SaveFormat.DOC);

I also tried using the options

docOptions.setHtmlExportCssStyleSheetType(CssStyleSheetType.INLINE);
docOptions.setHtmlExportAllowNegativeLeftIndent(true);
docOptions.setHtmlExportXhtmlTransitional(true);
docOptions.setHtmlExportDocumentProperties(true);
docOptions.setHtmlExportScaleImageToShapeSize(true);
docOptions.setHtmlExportMetafileAsRaster(true);
docOptions.setHtmlExportHeadersFooters(true);
docOptions.setHtmlExportTextInputFormFieldAsText(true);

And also I use Aspose word jar for java 1.5.
My java is 1.6 and java compiler level 1.5.

thanks,
karthik

Hi

Thank you for additional information. I managed to reproduce the problem on my side and created new issues #9090 in our defect database. I will notify you as soon as it is fixed.
Best regards.

Hi,

Thanks for the reply.

thanks,
karthik

Hi,

Can I get a rough time line about the fix. So we could use the same time line to notify our clients.

thanks,
karthik

Hi

Thanks for your inquiry. I think this issue will be resolved in the next version of Aspose.Words for java. It will be release in 4-5 weeks.
Best regards.

Hi Karthik,
We have just published Aspose.Words for Java v.3.1.0 that includes your fix. You can download it from https://releases.aspose.com/words/net .
Best Reagards,

Hi,

I downloaded the Aspose Word for Java from the above link.
I still have the problem. I have attached the result .doc file and source .html as a zip.

My env,
Ubuntu 9.04
Java 1.6 (but I compile the codes on 1.5)

I also tried with 1.6 complier, same result.

Here is my code,

Document document = new Document(srcDoc, LoadFormat.HTML, "");
SaveOptions docOptions = document.getSaveOptions();

docOptions.setHtmlExportCssStyleSheetType(CssStyleSheetType.INLINE);

docOptions.setTxtExportEncoding(Charset.defaultCharset());
docOptions.setHtmlExportAllowNegativeLeftIndent(true);
docOptions.setHtmlExportXhtmlTransitional(true);
docOptions.setHtmlExportDocumentProperties(true);

docOptions.setHtmlExportScaleImageToShapeSize(true);

docOptions.setHtmlExportMetafileAsRaster(true);
docOptions.setHtmlExportHeadersFooters(true);

docOptions.setHtmlExportTextInputFormFieldAsText(true);
document.setSaveOptions(docOptions);
document.setShadeFormData(true);
document.save(htmlDocPath, SaveFormat.DOC);

thanks,
karthik

Hello Karthik!
I’m sorry for inconvenience. This issue has to be re-checked. Our Java developer is aware of the problem and is taking measures to fix it. He will reply you in a few days.
Regards,

Hi Karthik,
I have tried your document with your code and with simple code without setting SaveOptions – all works as expected. See attached file. Please, check your environment – may be it use an old Aspose.Words jar?
Best Reagrds,

Hi Karthik,
Sorry, I have tested your doc on external test bed that uses obfuscated jar (as in public download) and I managed to reproduce your issue. Please, wait a little else – I will inform you about fix.
Best Regards,

Hi Karthik,
We have just published Aspose.Words for Java v.3.1.1 that includes your fix (I hope:). You can download it from File Format APIs for .NET Core, Java, Python, C++, Android | products.aspose.com . Please, inform me if something wrong. And thank you for your report.
Best Regards,

Hi Konstantin,

Thanks for your reply. The fix is working.

thanks,
karthik