Free Support Forum - aspose.com

Exception "Element already exist" while adding image to XPS using Aspose.Page (Java)

New Question:With version 19.11, adding image 1 to the XPS process will report an error.3a8fc821-35b5-4463-b86c-3910a650d3bc.zip (361.5 KB)

element already exists
com.aspose.page.internal.l164.I6I.lif(Unknown Source)
com.aspose.page.internal.l164.I6I.lIF(Unknown Source)
com.aspose.page.internal.l51.I0I.lif(Unknown Source)
com.aspose.xps.I9l.lif(Unknown Source)
com.aspose.xps.I9l.l1(Unknown Source)
com.aspose.xps.I10l.lI(Unknown Source)
com.aspose.xps.I4I.lIf(Unknown Source)
com.aspose.xps.XpsDocument.ll(Unknown Source)
com.aspose.xps.XpsDocument.lif(Unknown Source)
com.aspose.xps.XpsDocument$I7.lif(Unknown Source)
com.aspose.page.internal.l424.Il.lif(Unknown Source)
com.aspose.page.internal.l424.II.lif(Unknown Source)
com.aspose.xps.XpsDocument.save(Unknown Source)
com.aspose.xps.XpsDocument.save(Unknown Source)
com.insolu.OcrDemo.test(OcrDemo.java:201)
com.insolu.OcrDemo.main(OcrDemo.java:36)
Exception in thread “main” class com.aspose.page.internal.l16I.I0l: element already exists
com.aspose.page.internal.l164.I6I.lif(Unknown Source)
com.aspose.page.internal.l164.I6I.lIF(Unknown Source)
com.aspose.page.internal.l51.I0I.lif(Unknown Source)
com.aspose.xps.I9l.lif(Unknown Source)
com.aspose.xps.I9l.l1(Unknown Source)
com.aspose.xps.I10l.lI(Unknown Source)
com.aspose.xps.I4I.lIf(Unknown Source)
com.aspose.xps.XpsDocument.ll(Unknown Source)
com.aspose.xps.XpsDocument.lif(Unknown Source)
com.aspose.xps.XpsDocument$I7.lif(Unknown Source)
com.aspose.page.internal.l424.Il.lif(Unknown Source)
com.aspose.page.internal.l424.II.lif(Unknown Source)
com.aspose.xps.XpsDocument.save(Unknown Source)
com.aspose.xps.XpsDocument.save(Unknown Source)
com.insolu.OcrDemo.test(OcrDemo.java:201)
com.insolu.OcrDemo.main(OcrDemo.java:36)
at com.aspose.page.internal.l164.I6I.lif(Unknown Source)
at com.aspose.page.internal.l164.I6I.lIF(Unknown Source)
at com.aspose.page.internal.l51.I0I.lif(Unknown Source)
at com.aspose.xps.I9l.lif(Unknown Source)
at com.aspose.xps.I9l.l1(Unknown Source)
at com.aspose.xps.I10l.lI(Unknown Source)
at com.aspose.xps.I4I.lIf(Unknown Source)
at com.aspose.xps.XpsDocument.ll(Unknown Source)
at com.aspose.xps.XpsDocument.lif(Unknown Source)
at com.aspose.xps.XpsDocument$I7.lif(Unknown Source)
at com.aspose.page.internal.l424.Il.lif(Unknown Source)
at com.aspose.page.internal.l424.II.lif(Unknown Source)
at com.aspose.xps.XpsDocument.save(Unknown Source)
at com.aspose.xps.XpsDocument.save(Unknown Source)
at com.insolu.OcrDemo.test(OcrDemo.java:201)
at com.insolu.OcrDemo.main(OcrDemo.java:36)

@wanyangye

Thank you for contacting support.

Please always create separate topics for separate problems.

We have reproduced and logged the error as PAGEJAVA-81 in our issue management system for further investigations and resolution. We will let you know once any update will be available in this regard.

Is PAGEJAVA-81 resolved?

What’s new in PAGE api 19.12.

@wanyangye,

Thanks for contacting support.

We like to inform that work is in progress on this issue and we will share good news with you soon. I request for your patience.