Page 1 of 1

download as PDF from workflow

PostPosted:Tue Apr 15, 2014 5:20 am
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

Re: download as PDF from workflow

PostPosted:Thu Apr 17, 2014 7:08 am
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.