Hello,
yes it is the desired behavior since the costly converter is required - this is the same in enaio.
Since the rendition can only start converters using the cmd-line the command-line license ($1000) is required.
Once the converter is installed on the rendition-plus server you can integrate it by following these steps:
- Create the file "<rendition-plus>\renditionplus\bin\custom\dwg2pdf.js" and write the following lines to it:
importPackage(java.io);
importPackage(com.os.renditionplus.scriptexecutor);
function process(scriptPathName, applicationBase, timeout, sourceFile, targetFile)
{
var executor = new ScriptExecutor();
executor.setTimeout(timeout);
executor.setDebug(true);
var outputPath = new File(targetFile);
executor.setWorkingDirectory(outputPath.getParent());
println("execute");
executor.execute("<path_to_dp.exe>", "/InFile", sourceFile, "/OutFile", targetFile);
}
(replace <path_to_dp.exe> with the path to the anydwg program .exe file)
- Create the file "<rendition-plus>\renditionplus\bin\custom\dwg2pdf.xml" and write the following lines to it:
<?xml version="1.0" encoding="utf-8"?>
<converter name="dwg2pdf-script" xmlns="
http://schemas.optimal-systems.de/RenditionPlus/Converter/"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<starter priority="201">
<source>^(application/dwg)</source>
<target>toPdf</target>
</starter>
<skip value="false" />
<executor>
<workingDirectory value="${config.application-base}/apps/java" />
<command value="scriptexecutor-app.bat" />
<timeout value="${bean.expression.secureTimeout}" />
<arguments>
<argument value="${config.application-base}/custom/dwg2pdf.js" />
<argument value="${config.application-base}" />
<argument value="${bean.expression.timeout}" />
<argument value="${bean.expression.firstContentLocation}" />
<argument value="${bean.expression.targetFilePath}/result.pdf" outParam="true" />
</arguments>
<target>
<single>
<targetMimeType value="application/pdf" />
<targetFileName value="result.pdf" />
</single>
</target>
</executor>
<secureExecution>true</secureExecution>
<cantConvertForward>true</cantConvertForward>
</converter>
- Restart rendition-plus
- If you want to retry already uploaded files you first need to delete the error marker for this rendition. This can be done by executing the following rest-ws call:
DELETE http://<gateway>/rest-ws/service/dms/<item-id>/content/rendition
Best regards
Nicolai