Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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

Avatar

Former Community Member

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. 

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

4 Replies

Avatar

Level 10

"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

Avatar

Administrator

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

Avatar

Former Community Member

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.

Avatar

Correct answer by
Level 10

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.