AnsweredAssumed Answered

Using the .transformDocument function

Question asked by rodrigoa on Jan 16, 2012
Latest reply on Jan 19, 2012 by amandaluniz_z
Good Afternoon all,

I am having some problems to transform a .doc into a .pdf. I am creating a .doc and trying to convert it to a .pdf and put it into a specific site. Is that possible? or is there any other way to do what I need?

Here is my code:

         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
               var site = siteService.getSite("revision");
               var doc1 = userhome.createFile("transform_me1.doc");
               doc1.mimetype = "text/plain";
               doc1.content = "This is plain text";
               var trans1 = doc1.transformDocument("application/pdf", site);

Thanks in advance,

Rodrigo Araujo.