Editing from Microsoft Word | Community
Skip to main content
New Participant
January 11, 2016
Solved

Editing from Microsoft Word

  • January 11, 2016
  • 14 replies
  • 5656 views

Hi,

A requirement of our potential project says "CMS should allow Editing from Microsoft Word".

I am trying to first understand this requirement (we are yet to clarify this from client) and then examine whether AEM has this feature.

Is the requirement that we should be able to import Word documents in to the CMS and be able to edit the word document from within CMS?

Or probably word file creation itself should happen within CMS and of course its editing also subsequently.

Followed Documentation for AEM 6.1 Offline Importer and imported a word document.

When I double clicked it, I am able to edit it, but this is not what the requirement is.

I would guess that we should be able to edit using Word editor.

Could you please throw some light on your understanding of this requirement and AEM's feature towards it?

Appreciate your help.

Thanks,

Rama. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jitendra_S_Toma
Yes Rama,  there is no word doc editor in Aem and you have to upload docs manually after updation.  I believe, it would not be easy to build a app which syncs update docs with aem dam.  Though it is feasible thing.  It is like Google Drive.

14 replies

kautuk_sahni
Employee
January 12, 2016

Hi 

There is Apache POI library for read,writ,create and manage MS-Word documents using Java.

Link doe Tutorial :- http://www.tutorialspoint.com/apache_poi_word/apache_poi_word_document.htm

 

//Example ti create a blank Document

import java.io.File;import java.io.FileOutputStream;import org.apache.poi.xwpf.usermodel.XWPFDocument;public class CreateDocument{public static void main(String[] args)throws Exception{//Blank DocumentXWPFDocument document= new XWPFDocument();//Write the Document in file systemFileOutputStream out = new FileOutputStream(new File("createdocument.docx"));document.write(out);out.close();System.out.println("createdocument.docx written successully");}}

 

Now just create a OSGi sling service or component and use above library to read,writ,create and manage MS-Word documents.

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
nsvsrkAuthor
New Participant
January 12, 2016

Thanks Kunal and Jitendra for replying.

I used WebDav before for uploading a number of images, css and jS files from the Windows file system to AEM.

So, here, the user creates the word doc on the file system and uploads to AEM using WebDav.

When updates to the document are required, he makes edits to the word doc on the file system and uploads to AEM again.

Thus, we are not considering incorporating Word editor within AEM.

Is it what you suggest?

Also, is the upload after edits automatic or manual?

Is there a way to consider Word editor within AEM?

Thanks,

Rama.

Jitendra_S_Toma
New Participant
January 12, 2016

@Rama,

Agreeing with @Kunal and I think that is the only thing possible (Using WebDav to upload updated docs).

@Kunal,

One quick question, if we upload the document in the same path (from where it was downloaded) with the same name, will the uploaded file be a new file or will it override the existing file?. 

Jitendra

Kunal_Gaba_
New Participant
January 11, 2016

I guess the requirement means that the users should be able to use the Microsoft Word editor for editing the word documents which lives in the CMS. The operation of creating new word document and editing a new word document should be possible from within the editor. They would not like to login into AEM and download the asset for editing and then uploading it back whenever they are done. 

And for this requirement you can explore using the CRX webdav support feature - https://docs.adobe.com/docs/en/crx/2-3/how_to/webdav_access.html