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

Free Support Forum - aspose.com

java.lang.UnsatisfiedLinkError when converting DOC

When trying to convert a specific Word file (see attachment) to PDF I’m getting a java.lang.UnsatisfiedLinkError. Other Word files work. What is going wrong?


Here’s the stack trace:
java.lang.UnsatisfiedLinkError: com/aspose/words/WindowsNativeCall.createGlobalPrinterDC(Ljava/lang/String;)V
at com.aspose.words.WindowsNativeCall.(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.WindowsNativeCall.getInstance(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.PrinterMetrics.(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zzZMR.zzZwQ(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zzZMR.zzZ(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zzZMR.zzZH(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zzZMR.zzZwU(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zzZMR.zzZz9(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zzZN3.hashCode(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zzZMR.hashCode(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at java.util.HashMap.hash(HashMap.java:374) ~[?:1.7.0]
at java.util.HashMap.put(HashMap.java:504) ~[?:1.7.0]
at com.aspose.words.zzZMR.zzX(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zzZ1B.zzYp(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zz9R.zzZY9(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zz9R.moveNext(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zzZPC.zzZ(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.Document.updatePageLayout(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.Document.zzXu(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.Document.zzZZK(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.Document.getPageCount(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zz18.zzY(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.zz18.zzZ(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.Document.zzZ(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.Document.zzZ(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at com.aspose.words.Document.save(Unknown Source) ~[aspose-words-15.8.0-jdk16.jar:15.8.0.0]
at org.myorg.MyClass.convertToPdf(AsposeWords.java:125) ~[classes/:?]
… 72 more

Hi Federico,


Thanks for your inquiry.

We have tested the scenario using latest version of Aspose.Words for Java 15.10.0 and have not found the shared issue. Please use latest version of Aspose.Words. We have attached the output Pdf with this post for your kind reference.