Documents4j remoteServer转换服务器设置



我正在使用Documents4j将rtf文件转换为pdf文件。我的电脑上没有MS word或任何东西,所以我似乎需要使用远程转换器。此处的信息:http://documents4j.com/#/.

我的项目是用spring boot设置的。基于GitHub上的一些问题,我使用maven shade插件为maven浏览并设置了shading。但是,我无法运行Documents4j建议的命令来运行服务器:java -jar documents4j-server-standalone-shaded.jar http://localhost:9998

我得到:CCD_ 2。

我的pom.xml文件引入了shade插件。

这是我的pom.xml中的插件:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
</plugin>

以下是我在Documents4j中使用的依赖项:(也许缺少一些重要的东西?)

<dependency>
<groupId>com.documents4j</groupId>
<artifactId>documents4j-api</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.documents4j</groupId>
<artifactId>documents4j-client</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.documents4j</groupId>
<artifactId>documents4j-server-standalone</artifactId>
<version>1.0.3</version>
</dependency>

根据我在Documents4j页面上看到的内容,该命令似乎应该正常工作,所以我认为没有创建jar文件。

我似乎在任何地方都找不到那个jarfile。。。因此,我无法使用路径而不是名称来运行java-jar命令。

此外,我不确定插件中可能需要什么"配置"。也许有一个技巧可以让maven着色发挥作用?也许我误解了Documents4j页面的意思?也许它对Mac电脑的作用不同?也许Documents4j不是一个好选择?

我非常感谢所有的协助。

请注意,它只能在支持.NET并安装了Office的Windows服务器上运行。https://github.com/documents4j/documents4j/issues/53

最新更新