Hello,
I am trying to use the Automation tool on Openkm Pro trial version 6.2.26. I am trying to use the document creation event where after the document is created I want to convert it to pdf to a directory on my system.
For the ExecuteScripting action i am using the following code:
I am trying to use the Automation tool on Openkm Pro trial version 6.2.26. I am trying to use the document creation event where after the document is created I want to convert it to pdf to a directory on my system.
For the ExecuteScripting action i am using the following code:
Code: Select all
I get the following error in my log file:import com.openkm.api.*;
import com.openkm.automation.*;
import com.openkm.util.DocConverter;
String input = OKMRepository.getInstance().getNodePath(null, uuid);
String output = "/home/workdesk/test/new/";
String mimetype = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
DocConverter doc = new DocConverter();
doc.doc2pdf ( input, mimetype, output );Code: Select all
2014-03-24 04:50:45,965 [http-bio-0.0.0.0-8080-exec-7] INFO com.openkm.dao.NodeBaseDAO - addPropertyGroup(74c61d8e-9893-4456-bb11-933d40b8b746, okg:technology)
2014-03-24 04:50:46,020 [http-bio-0.0.0.0-8080-exec-7] ERROR com.openkm.automation.action.ExecuteScripting - Sourced file: inline evaluation of: ``import java.io.BufferedReader; import java.io.File; import java.io.FileN . . . '' : Typed variable declaration : Class: DocConverter not found in namespace
Sourced file: inline evaluation of: ``import java.io.BufferedReader; import java.io.File; import java.io.FileN . . . '' : Typed variable declaration : Class: DocConverter not found in namespace : at Line: 51 : in file: inline evaluation of: ``import java.io.BufferedReader; import java.io.File; import java.io.FileN . . . '' : DocConverter