While using the latest version of Aspose.Words i.e. 11.8.0, I managed to reproduce this exception on my side. I have logged this issue in our bug tracking system. The issue ID is WORDSNET-7063. Your request has been linked to this issue and you will be notified as soon as it is resolved.
No sign of any improvement, I’m afraid. I still see the same error when attempting to convert the attached docx document. Again, removing the charts from the document fixes the error.
Could you please also double check if you are using the latest version of Aspose.Words i.e. 11.10.0? You can dynamically check if you’re referencing the correct DLL by using the following code snippet:
System.Reflection.Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
foreach (System.Reflection.Assembly assembly in assemblies)
{
System.Reflection.AssemblyName assemblyName = assembly.GetName();
if (assemblyName.Name.Contains("Aspose.Words"))
Console.WriteLine("Aspose.Words Version Number: " + assemblyName.Version.ToString());
}
Thanks for your inquiry. You can determine Aspose.Words’ JAR version by unziping ‘Aspose.Words.jdk16.jar’ file. Please navigate to ‘META-INF’ folder and then open ‘MANIFEST.MF’ with Notepad. There you’ll find something like below:
Thanks for your inquiry. I rendered your documents (test.docx) you attached here and here with the latest version of ‘Aspose.Words for Java’ on my side and was unable to reproduce this exception on my side. I have attached a sample Pdf document here for your reference as well. Could you please also share your code here for testing? I will investigate the issue further on my side and provide you more information.
I’m using the PHP/Java Bridge thing (running on Tomcat) to initiate the conversion from a PHP script (running under Apache 2). I’ve attached my PHP script along with the Java code I’m using (I had to add a .txt extension to upload).
Thanks for the additional information. Does this happen with one document in particular or all Word Documents you try throw the exception during rendering to Pdf? It would be great if please produce a Pdf document on your side and attach it here for our reference as well. Also, please tell us the details of the machine environment you’re getting this problem on e.g. the operating system, the JDK version etc.
I get the error whenever I have a chart embedded in the Word document that I’m trying to convert. If I use the same document saved with the chart (or charts) stripped out, the conversion works fine.
I’ve attached the PDF that results from a conversion of a Word document (without charts), although that’s probably not much use to you!
I can successfully convert a document with a chart that I created manually in Word 2010. The errors seem to occur whenever I attempt to convert a chart when the document has been created in PHP code using OOXML.
The PDF you attached in your post seems to be generated with Aspose.Words for Java v11.8.0. I would suggest you please upgrade to latest version from the following link: