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

Free Support Forum - aspose.com

Re: com.aspose.words.WindowsNativeCall.createGlobalPrinterDC(Ljava/lang/String;)V

We face here the same problem on Ubuntu Linux.


Document doc = new Document(file.getInputStream());


Please find the doc attached.

Aspose Words 15.7.0

Cheers, Thomas

Hi Thomas,

Thanks for your inquiry. This issue has been resolved in Aspose.Words for Java 15.7.0. Please make sure that you’re using latest version of Aspose.Words on your end. You can download it from the following link. I hope, this helps.

Please double check if your’re using the latest version of Aspose.Words on your side. Please unzip ‘aspose-words-15.7.0-jdk16.jar’ file, navigate to ‘META-INF’ folder and then open ‘MANIFEST.MF’ with Notepad to verify the version number.

Best regards,


I checked again and reinstalled the Aspose Words for Java 15.7.0 provided under your link. The MANIFEST.MF begins with:

Manifest-Version: 1.0

Application-Name: Aspose.Words for Java

Implementation-Title: Aspose.Words for Java

Bundle-SymbolicName: com.aspose.words


Release-Date: 2015.07.31

Specification-Vendor: Aspose Pty Ltd

Bundle-ManifestVersion: 2

Specification-Title: Aspose.Words for Java

Still I get the following error message:

Exception in thread “main” java.lang.UnsatisfiedLinkError: com.aspose.words.WindowsNativeCall.createGlobalPrinterDC(Ljava/lang/String;)V

at com.aspose.words.WindowsNativeCall.createGlobalPrinterDC(Native Method)

at com.aspose.words.WindowsNativeCall.(Unknown Source)

at com.aspose.words.WindowsNativeCall.getInstance(Unknown Source)

at com.aspose.words.PrinterMetrics.(Unknown Source)

at com.aspose.words.zzZMV.zzZzM(Unknown Source)

at com.aspose.words.zzZMV.zzZ(Unknown Source)

at com.aspose.words.zzZMV.zzZH(Unknown Source)

at com.aspose.words.zzZMV.zzZzQ(Unknown Source)

at com.aspose.words.zzZMV.zzZC5(Unknown Source)

at com.aspose.words.zzZN7.hashCode(Unknown Source)

at com.aspose.words.zzZMV.hashCode(Unknown Source)

at java.util.HashMap.hash(HashMap.java:338)

at java.util.HashMap.get(HashMap.java:556)

at com.aspose.words.zzZMV.zzX(Unknown Source)

at com.aspose.words.zzZ28.zzY(Unknown Source)

at com.aspose.words.zz9T.zz0i(Unknown Source)

at com.aspose.words.zz9T.moveNext(Unknown Source)

at com.aspose.words.zzZPI.zzZ(Unknown Source)

at com.aspose.words.Document.updatePageLayout(Unknown Source)

at com.aspose.words.Document.zzXI(Unknown Source)

at com.aspose.words.Document.zz2a(Unknown Source)

at com.aspose.words.Document.getPageCount(Unknown Source)

I could provide also other word documents where getPageCount() fails.

Best, Thomas

Hi Thomas,

Thanks for your inquiry. We are working over your “RAD ICAT.doc” document and will get back to you soon.

Best regards,

Hi Thomas,

On my Linux environment, I could reproduce this “WindowsNativeCall” exception using 15.6.0 but not using 15.7.0. So, please make sure that you’re referencing correct JAR file. I tested your “RAD ICAT.doc” on my end. Could you please attach your other Word document here for testing? We will investigate the issue on our end and provide you more information.

Best regards,

Please find attached another document, that causes this exception.

I noticed that this exception only happens on our Mac OS X development system using 15.7.0 but not on our production system. (Linux Ubuntu 14.04 LTS).

Cheers, Thomas

Hi Thomas,

Thanks for the details. I am afraid, I was still unable to reproduce this issue on my side over MAC OS X LION operating system. Please list complete steps that we can perform on our end to be able to reproduce this exception.

Best regards,