cancel
Showing results for 
Search instead for 
Did you mean: 

ContentService / renditionService

dacedos
Champ in-the-making
Champ in-the-making
Hi,

I have some java classes that run fine in alfresco 3.2r with SP2 but now I need to migrate those developments to alfresco 3.4

We develop a custom renditionService where we transform content from application/msword or open-document-text to PDF.

We used contentService and contentTransformer to convert but those services seems not to be available (or working) in 3.4. Those lines always return null in 3.4 even after adding MimetypeMap to my project. (it was unavailable in 3.4)

ContentReader reader = contentService.getReader(nodeRef, ContentModel.PROP_CONTENT);
ContentTransformer contTransformer = contentService.getTransformer(reader.getMimetype().toString(), MimetypeMap.MIMETYPE_PDF);

Since that we are trying to use the RenditionService available from alfresco 3.3 but it cannot transform content either.

  Please correct the errors below then click Finish.

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

Any help to transform content from msword/openText/excel to PDF ?? I would like to use the contentTransformer for minimal impact, using renditionService would mean too many changes!

Thanks!!
1 REPLY 1

dacedos
Champ in-the-making
Champ in-the-making
How can I do to see renditions in the same folder that source documents?