cancel
Showing results for 
Search instead for 
Did you mean: 

Getting cm:content from a Word document

bengrah
Champ on-the-rise
Champ on-the-rise
Hi all,

I'm wanting to get the content from a Word document so we can manipulate the content and present it via Webscript.

My JS is really simple:

<javascript>

var node = search.luceneSearch(<nodeid>);

print(node.properties.content.content);

</javascript>


But when I ran this script and print out the content, it comes out like the following (see attached document).

Is it possible to get at the content in a Word document? For my test I used a very simple Word doc (also attached).

Thanks,
Ben
3 REPLIES 3

bengrah
Champ on-the-rise
Champ on-the-rise
Attached output.

bengrah
Champ on-the-rise
Champ on-the-rise
Attached encoding output

aevans713
Champ in-the-making
Champ in-the-making
There is currently an issue with attaching items to forum posts (https://forums.alfresco.com/forum/alfresco-website/information-known-forumsalfrescocom-issues-042520...). If you could, can you copy and paste the output directly into the post? Or use something like pastebin. Thanks!