Page 1 of 1

How to change trial web PDFConvert for trial windows service

PostPosted: Wed Jun 08, 2016 11:58 pm
by pedro
Hello everybody,

I'm testing PDF converter. This is the situation. I'm using docx4j 3.3.0. I have installed PDF Converter trial version for windows and now I have a plutext service running. In the sample code about docx to pdf conversion I found this:
Code: Select all
String URL = Docx4jProperties.getProperty("com.plutext.converter.URL", "http://converter-eval.plutext.com:80/v1/00000000-0000-0000-0000-000000000000/convert");


I need to know which is the URL if I want use my windows service.

Thanks in advance.

Re: How to change trial web PDFConvert for trial windows ser

PostPosted: Thu Jun 09, 2016 9:41 am
by jason
As you might guess from the code you found, you configure that via docx4j property "com.plutext.converter.URL".

You should set that in docx4j.properties; a sample properties file can be found at https://github.com/plutext/docx4j/blob/ ... erties#L62

Add it to your classpath.

Or you could do it programmatically, eg:

Code: Select all
Docx4jProperties.setProperty("com.plutext.converter.URL", "http://converter-eval.plutext.com:80/v1/00000000-0000-0000-0000-000000000000/convert");


The only part of the URL you should alter is host name and port.

Re: How to change trial web PDFConvert for trial windows ser

PostPosted: Thu Jun 09, 2016 10:40 pm
by pedro
I try it and it works fine.

Thank you very much.

Re: How to change trial web PDFConvert for trial windows ser

PostPosted: Thu Jun 09, 2016 10:50 pm
by jason
Great, thanks for letting us know.