AnsweredAssumed Answered

document.transformDocument() is giving null

Question asked by ayushi.agrahari on Sep 23, 2017
Latest reply on Sep 24, 2017 by mehe

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.

Outcomes