@rnara Unfortunately, There are no other recommendations then provided above. To sum them up to get the correct rendering on my side I made the following actions:
Used the following code and the latest version of Aspose.Words for Java:
// Open a document
Document doc = new Document("in.docx");
// When text shaper factory is set, layout starts to use OpenType features.
// An Instance property returns static BasicTextShaperCache object wrapping HarfBuzzTextShaperFactory
doc.getLayoutOptions().setTextShaperFactory(com.aspose.words.shaping.harfbuzz.HarfBuzzTextShaperFactory.getInstance());
// Render the document to PDF format
doc.save("out.pdf");
Hi @alexey.noskov ,
I am also having same locale but still not getting expected output file.
I have tried everything suggested but nothing worked.
Any way we can progress on this?
@rnara Thank you for additional information. Unfortunately, the problem is still not reproducible on my side.
MS Word: out.pdf (61.1 KB)
Aspose.Words for Java 25.3: out_java.pdf (64.5 KB)
You are using 25.1 version of Aspose.Words. But even with this version the output is correct on my side:
Hi @alexey.noskov ,
What more information you can provide on this to get to the root cause of the issue.
Can you please share details on OS level.
Thanks,
Krishna
@rnara I tested conversion on Windows 10. Perhaps you can create Dokerfile that will emulate you problematic environment. We will test with it on our side and let you know the result.
@alexey.noskov,
We tried the conversion on Window 10, OpenJDK version “11.0.15”.
This issue is still reproducible.
Can you please share the complete source code that is used for conversion?
// Open a document
Document doc = new Document("in.docx");
// When text shaper factory is set, layout starts to use OpenType features.
// An Instance property returns static BasicTextShaperCache object wrapping HarfBuzzTextShaperFactory
doc.getLayoutOptions().setTextShaperFactory(com.aspose.words.shaping.harfbuzz.HarfBuzzTextShaperFactory.getInstance());
// Render the document to PDF format
doc.save("out.pdf");