We face here the same problem on Ubuntu Linux.
Code:
Document doc = new Document(file.getInputStream());
doc.getPageCount();
Please find the doc attached.
Aspose Words 15.7.0
Cheers, Thomas
Hi Thomas,
Hi,
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
Implementation-Version: 15.7.0.0
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,
Hi Thomas,
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,