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

Free Support Forum - aspose.com

java.lang.IllegalArgumentException: Unquoted special character

Dear sir/Mam

i am using (aspose-words-14.7.0-jdk16 Version) and below code to read all doc and docx doc types.
InputStream docis = new ByteArrayInputStream(FileManager.getBytesFromFile(new File(fileName))) ;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Document doc1 = new Document(docis);
doc1.save(baos, SaveFormat.PDF);

but i am getting below exception while reading the attached document. whats wrong here.

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Unquoted special character ‘;’ in pattern "_ * #,##0_ ;_ * -#,##0_ ;_ * -??_ ;_ @_ "
at com.aspose.words.zzZQK.zzZ(Unknown Source)
at com.aspose.words.zzZQK.zzY(Unknown Source)
at com.aspose.words.zz2H.zzZVS(Unknown Source)
at com.aspose.words.zz2L.zzZWb(Unknown Source)
at com.aspose.words.zz2L.zzZW7(Unknown Source)
at com.aspose.words.zzZ1P.zzZ(Unknown Source)
at com.aspose.words.zzZ5J.zzZ(Unknown Source)
at com.aspose.words.zzZ5I.zzZ(Unknown Source)
at com.aspose.words.zzZ5I.zzZte(Unknown Source)
at com.aspose.words.zzZ5I.zzZ(Unknown Source)
at com.aspose.words.zzXJ.zzvn(Unknown Source)
at com.aspose.words.zzXJ.zzX(Unknown Source)
at com.aspose.words.zzZE8.zzJ(Unknown Source)
at com.aspose.words.zzZE8.zzS(Unknown Source)
at com.aspose.words.zzZDQ.zzy(Unknown Source)
at com.aspose.words.zzZ3Q.zzSy(Unknown Source)
at com.aspose.words.zzDD.zzXY(Unknown Source)
at com.aspose.words.zzDE.zz9r(Unknown Source)
at com.aspose.words.zzZR3.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.Document.zzY2(Unknown Source)
at com.aspose.words.Document.zza7(Unknown Source)
at com.aspose.words.Document.getPageCount(Unknown Source)
at com.aspose.words.zz2N.zzY(Unknown Source)
at com.aspose.words.zz2N.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzO(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)

kindly provide the solution to resolve this kind of issues in aspose

Hi Tamilarasan,

Thanks for your inquiry.

While using the latest version of Aspose.Words for Java i.e. 14.7.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSJAVA-926. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

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

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