What are the options that we can try to import word documents(in the form of zip file) and create/update the pages in AEM 6.1 | Community
Skip to main content
February 22, 2016
Solved

What are the options that we can try to import word documents(in the form of zip file) and create/update the pages in AEM 6.1

  • February 22, 2016
  • 4 replies
  • 1341 views

I have a business requirement  where user should be able to upload multiple document files into CMS(doc and docx). This will help the user to create/update the asset based on their business logic. 

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 smacdonald2008

You need to be able to write an AEM servlet that uses Word Java API. Then you need to write custom implementation logic to read the content and create content in the AEM JCR. I am not aware of any community article for this use case however.

We have one for Excel files using Excel Java API.

https://helpx.adobe.com/experience-manager/using/creating-custom-excel-service-experience.html

This gives you an idea of what you need to do with a Word file. 

Hope this helps. 

4 replies

smacdonald2008
smacdonald2008Accepted solution
New Participant
February 29, 2016

You need to be able to write an AEM servlet that uses Word Java API. Then you need to write custom implementation logic to read the content and create content in the AEM JCR. I am not aware of any community article for this use case however.

We have one for Excel files using Excel Java API.

https://helpx.adobe.com/experience-manager/using/creating-custom-excel-service-experience.html

This gives you an idea of what you need to do with a Word file. 

Hope this helps. 

February 24, 2016

Thanks for the replay. But my requirement was not to save the doc/docx file into the DAM. I need to process the doc file and create a page in the CMS with the processed data. Its kind of a bulk uploader utility which will help the content author to create the page by simply uploading a doc/docx file. It will be great If you can provide some pointers to try some options to achieve this.

kautuk_sahni
Employee
February 23, 2016

Hi 

As mentioned by Scott,

You can write your own custom Service/Component similar to the one mentioned in the link:

Link:- https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

//Uploading files to Adobe Experience Manager DAM using AssetManager API

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
smacdonald2008
New Participant
February 23, 2016

"I have a business requirement where user should be able to upload multiple document files into CMS"

You can import assets into the AEM JCR by writing a custom Sling Servlet that uses AssetManager API

https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

YOu can write a tool that can upload batch files into the AEM JCR. See this article that talks about how to develop a Java Swing application that posts multiple files to the AEM DAM. The Sling Servlet uses the AssetManager API to place the uploaded files into the AEM DAM.

https://helpx.adobe.com/experience-manager/using/multiple-digital-assets.html