Free Support Forum -

Figures from the document are numbered wrongly in the generated PDF file


We use Aspose.Total for Java and have the follow issue:
1. Transform MS Word 2003 and 2007 document in PDF file:
- figures from the document are numbered wrongly with “Figure Error! No text of specified style in document.-1” in the generated PDF file

Attach files for reproducing the problem and transformed PDF files which are broken:
- case1-original file.doc and case1-generated pdf with Aspose.pdf
- case2-original file.docx and case2-generated pdf with Aspose.pdf


Hi Ginka,

Thanks for your inquiry. It seems that you are calling Document.updateFields method in your code before saving the document to PDF. Your document contains field code like this "{ STYLEREF 1 \s }" for Figure. The Document.updateFields do not update STYLEREF field which is a bug.

I have logged this issue as WORDSNET-7867 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Moreover, a similar issue has been resolved recently and the fix will be available in next version of Aspose.Words (v13.2.0) which is planned to be released by the end of this month (around February' 28, 2013). Hopefully, this fix will also resolved your problem.

Hi Ginka,

Thanks for your patience. Please try the latest version of Aspose.Words for Java 13.2.0 for your issue. This will solve your problem.

Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

The issues you have found earlier (filed as WORDSNET-7867) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.