問題タブ [documents4j]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
1691 参照

java - IllegalStateException when converting from docx to pdf via documents4j

(SOLVED) I want to convert a docx-document into pdf. As the results with xdocreport weren't quite statisfactory, I tried out documents4j. Unfortunalty, I recieve the following IllegalStateException:

My first guess would be that it put one extra pair of quotation marks around the path (cmd, /S, /C, ""F:\word_start199932774.vbs""). Is there anything I can do about that or is there something else I do wrong?

Any help is welcome, thanks a lot in advance.

UPDATE:

I found my mistake, instead of this line:

I need to use this line:

with base being a temporary directory. My bad.