• download as PDF from workflow

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #28339  by matt81
 
Hi,
I am developing a workflow where a user can choose a document to be downloaded as PDF on local directory, by starting a workflow..
I am using the following function, where for the input I am passing the getNodePath(token, uuid):
Code: Select all
input = getNodePath(token, uuid): 
output = "c://local/folder/";
DocConverter.getInstance().doc2pdf(input, "application/vnd.openxmlformats-officedocument.wordprocessingml.document", output);
However I get an error, it cannot find the input document. i have even tried to set the webdev url as well and again the same error.
Code: Select all
Error in application/vnd.openxmlformats-officedocument.wordprocessingml.document to PDF conversion
Caused by: com.openkm.core.ConversionException: Error converting document: input document not found
 #28354  by jllort
 
This is very very strange, first of all this output = "c://local/folder/"; is a local output, that means will be stored in OpenKM server c://local/folder and I do not think is what you want. Download should be done from UI not from server side.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.