I am trying to transform a jpeg file to pdf using document.transformDocument() in alfresco
I have placed the following code in a js file in repo
var newdoc=document.transformDocument(application/pdf)
logger.log("newdoc"+newdoc);
but the value of newdoc is coming to be null
Any help regarding dis would be greatly appreciated.