2Exception in thread "main" class com.aspose.xps.internal.l13l.I0l: Property PathGeometry undefined: Canvas.Clip


#1

Exception in thread “main” class com.aspose.xps.internal.l13l.I0l: Property PathGeometry undefined: Canvas.Clip
com.aspose.xps.XpsPathGeometry.lif(Unknown Source)
com.aspose.xps.XpsPathGeometry.lif(Unknown Source)
com.aspose.xps.XpsPathGeometry.(Unknown Source)
com.aspose.xps.I67.lif(Unknown Source)
com.aspose.xps.I67.lif(Unknown Source)
com.aspose.xps.XpsElement.lif(Unknown Source)
com.aspose.xps.XpsCanvas.lif(Unknown Source)
com.aspose.xps.XpsCanvas.(Unknown Source)
com.aspose.xps.I71.lif(Unknown Source)
com.aspose.xps.XpsElement.lif(Unknown Source)
com.aspose.xps.I71.lif(Unknown Source)
com.aspose.xps.XpsElement.lif(Unknown Source)
com.aspose.xps.XpsPage.lif(Unknown Source)
com.aspose.xps.I0I.lif(Unknown Source)
com.aspose.xps.I0I.lif(Unknown Source)
com.aspose.xps.XpsDocument.lf(Unknown Source)
com.aspose.xps.XpsDocument.l0if(Unknown Source)
com.aspose.xps.XpsDocument.lif(Unknown Source)
com.aspose.xps.XpsDocument.(Unknown Source)
com.aspose.xps.XpsDocument.(Unknown Source)
com.yufei.cc.util.XpsWatermark.AddWaterMark(XpsWatermark.java:74)
com.insolu.helloworld.XpsWatermark1.testWatermark(XpsWatermark1.java:28)
com.insolu.helloworld.XpsWatermark1.main(XpsWatermark1.java:19)
at com.aspose.xps.XpsPathGeometry.lif(Unknown Source)
at com.aspose.xps.XpsPathGeometry.lif(Unknown Source)
at com.aspose.xps.XpsPathGeometry.(Unknown Source)
at com.aspose.xps.I67.lif(Unknown Source)
at com.aspose.xps.I67.lif(Unknown Source)
at com.aspose.xps.XpsElement.lif(Unknown Source)
at com.aspose.xps.XpsCanvas.lif(Unknown Source)
at com.aspose.xps.XpsCanvas.(Unknown Source)
at com.aspose.xps.I71.lif(Unknown Source)
at com.aspose.xps.XpsElement.lif(Unknown Source)
at com.aspose.xps.I71.lif(Unknown Source)
at com.aspose.xps.XpsElement.lif(Unknown Source)
at com.aspose.xps.XpsPage.lif(Unknown Source)
at com.aspose.xps.I0I.lif(Unknown Source)
at com.aspose.xps.I0I.lif(Unknown Source)
at com.aspose.xps.XpsDocument.lf(Unknown Source)
at com.aspose.xps.XpsDocument.l0if(Unknown Source)
at com.aspose.xps.XpsDocument.lif(Unknown Source)
at com.aspose.xps.XpsDocument.(Unknown Source)
at com.aspose.xps.XpsDocument.(Unknown Source)
at com.yufei.cc.util.XpsWatermark.AddWaterMark(XpsWatermark.java:74)
at com.insolu.helloworld.XpsWatermark1.testWatermark(XpsWatermark1.java:28)
at com.insolu.helloworld.XpsWatermark1.main(XpsWatermark1.java:19)


#2

@wanyangye

Could you please use Aspose.Page for Java as we are going to discontinue Aspose.XPS and replace it with Aspose.Page. Your old Aspose.XPS License would also work with new API until it gets expired. Please visit Aspose.Page for Java Documentation in order to check code examples. In case you still face any issue, please share your complete code snippet along with sample input/output files. We will test the scenario in our environment and address it accordingly.


#3

Caused by: java.lang.IllegalStateException: The license is not valid for this product. For free technical support, please post this error and the file in the Aspose.PDF Forums ![](file:///C:\Users\dgsteven\AppData\Roaming\Tencent\TIM\Temp%W@GJ$ACOF(TYDYECOKVDYB.png)http://www.aspose.com/community/forums/aspose.pdf-product-family/20/showforum.aspx
at com.aspose.page.I1.lif(Unknown Source)
at com.aspose.page.License.setLicense(Unknown Source)


#4

@wanyangye

Would you please share your license file with us in a private message. Please click over username and press Blue “Message” Button in order send a private message.