cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying openoffice documents

turgayz
Champ in-the-making
Champ in-the-making
Hi,
(I am not sure if this should be done with a custom aspect, but I wrote in this forum)
I am trying to do the following:

When an openoffice document(an Impress presentation file) is added to a space, I want to get the slides in it, modify them(for example, add a company logo to each of them), and then copy the new file to another space.

Is this possible?
2 REPLIES 2

turgayz
Champ in-the-making
Champ in-the-making
I am planning to:

- Get the openoffice file when it is put into the space (if the rule is applied to that space) (*)
- Read it into memory with java.util.zip.Zipfile(since the ooo file is actually an archive) and get the contents parsing the XML(I'll use JDOM).
- Modify the document
- Put it into another space (*)

I need help with the Alfresco related steps of this procedure (the ones with a star). I guess I will have to create a custom rule(or an aspect?) but I don't know how. Help will be appreciated.

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Sounds like you need to create a custom action.  Once done your action could be used to build a rule that will be run when new content arrives in a Space.

Have a look in the wiki for some help on creating a custom action.

http://www.alfresco.org/mediawiki/index.php/Custom_Actions
http://www.alfresco.org/mediawiki/index.php/Custom_Action_UI

Cheers,
Roy