cancel
Showing results for 
Search instead for 
Did you mean: 

Reading parsed content from PDF or DOC files

phani_av
Champ in-the-making
Champ in-the-making
Hi,

I am trying to read the content in a particular file that has been uploaded into Alfresco. I understand that the text from DOC and PDF files is parsed and stored by Alfresco via Lucene.
So for this I would like to know or have some sample code on how to get content on a particular file uploaded to Alfresco. For this I am looking at using the Content Retrieval CMIS webscript provided OOTB.
However, I feel there is not enough documentation around the parameters that need to be passed in. I can read the parameters but there is no enough description on what those values would or should be. A sample call to this web script would really be useful to compensate the lack of enough documentation.

Also, I would like to know what are the other web scripts or any other ways that would allow me to read the actual content on a node.

Regards,
Phani
2 REPLIES 2

gauchoproluanco
Champ in-the-making
Champ in-the-making
Hi phani,

We are trying to do the same: get the content of an uploaded document in Alfresco. For the moment we only have a simple webScript that retrieves the content of the doc:
var elemento = args.id;

var busqueda = search.luceneSearch("+TYPE:\"cm:content\" +@sys\\:node-uuid:\""+elemento+"\"");

model.resultset = busqueda;

Our our problem is that we don't know how should the freemarker and the xml be? I mean, the reponse has to be xml, html?

Hope it helps!

Luis

ps: have you find an example of how to invoke the Content Retrieval Web Script?

gauchoproluanco
Champ in-the-making
Champ in-the-making
Hi again,

Finally we have been able to invoke the Retrieve Content Web Script in this way:

service/api/node/content/workspace/SpacesStore/uuid'>http://hostSmiley Tongueort/alfresco/service/api/node/conten...

uuid is the uuid of the content that you want to download.

Hope it helps,

Luis