documents4j

DOCX to PDF conversion java using document4j remotely

喜欢而已 提交于 2020-01-25 09:18:24
问题 I am currently trying to convert an advanced word document (.DOCX) to PDF using java. For the generation of word documents I am using apache poi@3.15. They have a PDF converter build in, although it kind of ruins the document format. I eventually ended up using a cloud based API (paid), which felt like a bummer. Today though, I found the document4j project and it got me very excited. I have purchased a VPS which runs windows for the sole purpose of converting .docx files to .pdf files and it

Custom HttpClient for RemoteConverter of Documents4j

主宰稳场 提交于 2020-01-14 03:34:09
问题 I am using a RemoteConverter from a jBoss web application to a standalone server built as the default server-standalone included into documents4j project. Inside jboss I've got an old version of required libraries httpclient-4.0.1.jar and related httpcore-4.0.1.jar so I'm facing with a lot of ClassDefNotFoundException caused by the different version of the jar loaded by JVM. There is a specific problem with HttpClientConnectionManager object that is not available yet in version To avoid this

How to schedule documents4j server standalone as windows service using procrun?

删除回忆录丶 提交于 2019-12-04 05:14:51
问题 I have been trying to schedule the documents4j as windows service using procrun for RTF to PDF conversion but it keeps throwing the following error: com.documents4j.throwables.ConversionInputException: The sent input is invalid at com.documents4j.util.Reaction$ConversionInputExceptionBuilder.make(Reaction.java:159) ~[documents4j-client-standalone-0.3-SNAPSHOT-shaded.jar:na] at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75) ~[documents4j-client-standalone-0.3

How to schedule documents4j server standalone as windows service using procrun?

巧了我就是萌 提交于 2019-12-02 03:32:49
I have been trying to schedule the documents4j as windows service using procrun for RTF to PDF conversion but it keeps throwing the following error: com.documents4j.throwables.ConversionInputException: The sent input is invalid at com.documents4j.util.Reaction$ConversionInputExceptionBuilder.make(Reaction.java:159) ~[documents4j-client-standalone-0.3-SNAPSHOT-shaded.jar:na] at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75) ~[documents4j-client-standalone-0.3-SNAPSHOT-shaded.jar:na] at com.documents4j.ws.ConverterNetworkProtocol$Status.resolve(ConverterNetworkProtocol