简体   繁体   English

需要在 Alfresco 中通过 aspose 给 word 文档加水印

[英]Need to watermark word documents via aspose in Alfresco

I am trying to watermark word document in alfresco utilizing aspose Java utility by building Java backed webscript.我正在尝试通过构建 Java 支持的 webscript 来使用 aspose Java 实用程序在户外为 word 文档添加水印。

I am getting error as exception sending connect initialized event to listner instance of class org.alfresco.web.app.ContextListner Java.lang.NoClassDefFoundError:com/aspose/words/DocumentBase我收到错误,因为异常将连接初始化事件发送到 class org.alfresco.web.app.ContextListner Java.lang/wordsClassError/DocumentDBasef.

NoClassDefFoundError in Java comes when Java Virtual Machine is not able to find a particular class at runtime which was available during compile time.当 Java 虚拟机无法在运行时找到特定的 class 时,Java 中的 NoClassDefFoundError 在编译时可用。

Please remove reference to old Aspose.Words for Java from your project, clean the project (any IDE cache etc) and add reference again in your project to the new 'aspose-words-19.9-jdk17.jar'.请从您的项目中删除对 Java 的旧 Aspose.Words 的引用,清理项目(任何 IDE 缓存等)并在您的项目中再次将引用添加到新的“aspose-words-19.9-jdk17.jar”。 Hope this helps you.希望这对您有所帮助。

I work with Aspose as Developer Evangelist.我与 Aspose 一起担任开发人员宣传员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM