We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

DOCX to PDF conversion throws java.lang.UnsatisfiedLinkError

Same issue as theguyfromtheplace.
DOCX to PDF conversion with harfbuzz works fine with version 20.10, broken with all released after that versions (20.11,20.12,21.1,21.2). We are not mixing different versions of aspose-words and shaping-harfbuzz-plugin.aspose-docx.zip (8.5 KB)

Stack Trace:
Exception in thread “main” java.lang.UnsatisfiedLinkError: ‘void com.aspose.words.shaping.harfbuzz.HB.hb_buffer_set_flags(long, int)’
at com.aspose.words.shaping.harfbuzz.HB.hb_buffer_set_flags(Native Method)
at com.aspose.words.shaping.harfbuzz.zzZ.zzl(Unknown Source)
at com.aspose.words.shaping.harfbuzz.zzR.zzZ(Unknown Source)
at com.aspose.words.shaping.harfbuzz.zzR.zzZ(Unknown Source)
at com.aspose.words.shaping.harfbuzz.zzR.shapeText(Unknown Source)
at com.aspose.words.zzYOX.zzZ(Unknown Source)
at com.aspose.words.zzYOZ.zzZE(Unknown Source)
at com.aspose.words.zzYOZ.zzQ(Unknown Source)
at com.aspose.words.zzYP0.zzQ(Unknown Source)
at com.aspose.words.zzYN7.zzYpE(Unknown Source)
at com.aspose.words.zzYO9.zz6c(Unknown Source)
at com.aspose.words.zzYO9.zzYx(Unknown Source)
at com.aspose.words.zzYN7.zzYx(Unknown Source)
at com.aspose.words.zzZDQ.zzzj(Unknown Source)
at com.aspose.words.zzZDQ.zzW(Unknown Source)
at com.aspose.words.zzZDQ.zzUg(Unknown Source)
at com.aspose.words.zzZDJ.zzZ(Unknown Source)
at com.aspose.words.zzZDJ.zzL(Unknown Source)
at com.aspose.words.zzZDS.zzz(Unknown Source)
at com.aspose.words.zzZDS.zzT(Unknown Source)
at com.aspose.words.zzZDS.zzU(Unknown Source)
at com.aspose.words.zzVH.zzZ(Unknown Source)
at com.aspose.words.zzVH.zzZ(Unknown Source)
at com.aspose.words.zzYOT.zzYqq(Unknown Source)
at com.aspose.words.zzYOT.zzY(Unknown Source)
at com.aspose.words.zzYOT.zzZ(Unknown Source)
at com.aspose.words.zzYXO.zzU(Unknown Source)
at com.aspose.words.zzYXO.zzJ(Unknown Source)
at com.aspose.words.zzYMU.zza(Unknown Source)
at com.aspose.words.zzZS1.zzY(Unknown Source)
at com.aspose.words.zzZS1.zzX(Unknown Source)
at com.aspose.words.zzZS1.zzR(Unknown Source)
at com.aspose.words.zzYYI.zzL(Unknown Source)
at com.aspose.words.zzYXO.zzJ(Unknown Source)
at com.aspose.words.zzYMU.zza(Unknown Source)
at com.aspose.words.zz3Q.zzJ(Unknown Source)
at com.aspose.words.zz3R.zzZxL(Unknown Source)
at com.aspose.words.zzYYM.zzYGy(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.Document.zzWe(Unknown Source)
at com.aspose.words.Document.getPageCount(Unknown Source)
at com.aspose.words.zzZU2.zzY(Unknown Source)
at com.aspose.words.zzZU2.zzZ(Unknown Source)
at com.aspose.words.zzZ8E.zzZ(Unknown Source)
at com.aspose.words.Document.zzY(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at com.mhk.aspose.TestDocx.main(TestDocx.java:36)

@MEDHOK

Could you please ZIP and attach your input Word document here for testing? We will investigate this issue and provide you information on it.

TestKhmer.docx.zip (30.4 KB)

@MEDHOK

We have tested the scenario using the latest version of Aspose.Words for Java 21.2 and have not found the shared issue. Please make sure that you are using the latest version of Aspose.Words for Java and same Word document. We have attached the output PDF with this post for your kind reference.
21.2.pdf (50.5 KB)

We suggest you please read the following article about enabling the open type features.
Enable OpenType Features

What OS are you running this on? We tested this on Ubuntu 20.04.2 LTS.

@MEDHOK

Thanks for sharing the detail. We will test this case on Ubuntu and will share our findings with you soon.

@MEDHOK

We have tested the scenario and managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSJAVA-2538. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSJAVA-2538) have been fixed in this Aspose.Words for .NET 21.5 update and this Aspose.Words for Java 21.5 update.

We verified it’s fixed on Ubuntu and Amazon AMI. Still getting same error on MacOS.

@MEDHOK

Please remove all old JAR files from your application, install the latest version of Aspose.Words for Java i.e. 21.5, clean the application and test your scenario again.

Please make sure that you are using the same code and document. If you are using different code or document, please ZIP and attach code and document here for testing.

Issue still persists on MacOS with the same code and document.

@MEDHOK

We are investigating this issue and will get back to you soon.

@MEDHOK

We have tested the scenario and managed to reproduce the same issue at our side. We have logged this problem in our issue tracking system as WORDSJAVA-2616. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSJAVA-2616) have been fixed in this Aspose.Words for Java 21.11.0 update.