Hi,
Im having issue where the content in my rtf is rendered wrongly in my pdf.
the value supposed to be
2. 70MM X 1,515MM X C - QTY:200MT AT USD964/MT
but after convert to pdf it become
3. 70MM X 1,515MM X C - QTY:200MT AT USD964/MT
I’m currently using aspose-words-17.5-jdk16…I tried to replace it with aspose-words-22.2-jdk16.jar,however this issue still exist
@senyee89 Unfortunately, I cannot reproduce the problem on my side. I have used the following simple code for testing:
Document doc = new Document(@"C:\Temp\Document.rtf");
doc.Save(@"C:\Temp\out.pdf");
Could you please attach your output PDF and code, which will allow us to reproduce the problem? We will check the problem once again and provide you more information.
@senyee89 Thank you for additional information. As I can see you are using quite old 17.5 version of Aspose.Words for Java. I have tested with the latest 22.2 version of Aspose.Words for Java and the problem is not reproducible. Please try using the latest version and let us know if the problem still persist on your side.
@senyee89 Could you please attach the output document produced by the latest 22.2 version of Aspose.Words for Java. Also, please attach the fonts you are using for conversion and XPS output, so we can deeper analyze the problem.
I’m not sure what font is using…but i will upload the font folder based on the fontpath mentioned in code to you and the output product by latest version.
@senyee89 Unfortunately, I do not see the requested resources for further issue analysis. Please attach the output document produced by the latest 22.2 version of Aspose.Words for Java. Also, please attach the fonts you are using for conversion and XPS output.
@senyee89 Thank you for additional information Please attach your Courier New font. As I can see this is the only font used for rendering the text.
Also, please convert your document to XPS on your side and attach the output file here. You should zip it to upload.
@senyee89 Thank you for additional information. But unfortunately, I still cannot reproduce the problem on my side. To convert document to XPS you should simply specify XPS extension or use SaveFormat.XPS. Could you please try converting your document using the following simple code:
@senyee89 Finally I have managed to reproduce the problem on my side with the document you have recently attached. The document is actually TXT document and upon loading Aspose.Words mistakenly detects numbers with decimal point as list items. The problem has been logged as WORDSNET-23562. We will keep you informed and let you know once it is resolved.
As a temporary workaround, you can use DocumentBuilder and insert TXT content into the document instead of loading TXT document. For example see the following code:
@senyee89 We have implemented a draft of fix, currently the code is in the que for review. If everything goes smoothly, the fix will be included in one of future versions of Aspose.Words.