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">
<script>
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);
</script>
</action>
Thanks in advance,
Rodrigo Araujo.