cancel
Showing results for 
Search instead for 
Did you mean: 

3.3 transformer error when attempting to convert PDF to RTF

danggang
Champ in-the-making
Champ in-the-making
Fresh install of 3.3 CE on Windows Server 2008 64-bit (could this be an issue?).

Following the "Smart Spaces" example here:

http://www.alfresco.com/products/ecm/tour/tour.html

I've created a content rule that is intended to convert any PDF document placed into one folder to an RTF document in another folder. Here's the rule:

Rule Type: inbound
Name: PDF to RTF
Description: PDF to RTF
Apply rule to sub spaces: No
Run rule in background: No
Disable rule: No
Conditions: Item has a mimetype of 'Adobe PDF Document'
Actions: Copies content to 'RTF' and transforms to 'Rich Text Format'

When I upload PDF file (have tried several different files), I get the following error message:

Please correct the errors below then click OK.

Failed to create content due to error: 04190003 Transformer for 'application/pdf' source mime type and 'application/rtf' target mime type was not found. Operation can't be performed

Do I need to enable something in the properties file for this to work? I created a rule that converts the from RTF to PDF and that works just fine. I'm assuming what I'm trying to do is possible since it was used as an example in the "tour," as I mentioned.

Any suggestions? Again, could running Alfresco on a 64-bit OS be causing problems? Also, I tried installing the latest nightly build (3.3G, May 18th) as well and this made no difference.
3 REPLIES 3

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
I belive that that combination for converts does not exists. you have to define it the.

http://wiki.alfresco.com/wiki/Content_Transformations

this should help.

danggang
Champ in-the-making
Champ in-the-making
Ah, you are correct. Many thanks for replying. I'm completely new to Alfresco so it took me a while to find the location of the content-services-context.xml file, but once I found it I can see that only a few, basic content transformers are built-in. When I create a content rule to convert PDF to TXT, that works, since there is a rule defined for that.

So my next question  Smiley Happy  is: does anyone have working examples of other content transformers that I could take a look at? I don't really understand how to create one of my own. http://wiki.alfresco.com/wiki/Content_Transformations provides a sample XML file for creating a custom transformer, but I don't understand which application I would call to (for example) convert a PDF to .rtf or .doc format. I'm guessing this is something Open Office can do, and since that's installed with Alfresco it seems like I should be able to get this to work without too much difficulty. But perhaps I'm being overly optimistic  :wink:

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
Yes, you can convert anything to pdf , all the stuff that open office does.
you need to start OO in headless mode, and set up the paths for this.