cancel
Showing results for 
Search instead for 
Did you mean: 

Content Rules => Transform and copy content

mrbrown
Champ in-the-making
Champ in-the-making
Hi!
I'm using alfresco for a few days and testing all the possibilities it brings in document management.
I've a little problem in creating rules to transform a document into pdf and move it to a given space. I can't specify several types of documents to be transformed into pdf in a single rule. I have to create one rule per type of file. It's not really user-friendly because I have a lot of types of documents (openoffice spreadsheet, text, presentation,…) to transform. Am I obliged to create a rule for each type?

Thanks :wink:

mrBrown
1 REPLY 1

kevinr
Star Contributor
Star Contributor
The standard out-of-the-box rules provided are pretty basic, so yes you would require a rule to perform each transformation you require. However, this is why we provide the powerful JavaScript API for scripting Alfresco. You can Execute a Script rule that performs all the work you require. From a JavaScript you can examine the properties of documents (including mimetype etc.) and then perform the transformations, move or copy the documents, rename them etc.
http://wiki.alfresco.com/wiki/JavaScript_API
There are plenty of examples at the bottom of the page.

Hope this helps,

Kevin