Message Boards

liferay 7.2 : How to display document preview in custom portlet

srini vasulu, modified 3 Years ago.

liferay 7.2 : How to display document preview in custom portlet

Regular Member Posts: 139 Join Date: 2/22/11 Recent Posts

Hi All,

In custom portlet i want to display the document preview with info tab how i want to display it?

i used below part in buil.gradel

compile group: 'com.liferay', name: 'com.liferay.document.library.web', version: '4.0.51'
compile group: 'com.liferay', name: 'com.liferay.document.library.preview.audio', version: '1.0.15'
compile group: 'com.liferay', name: 'com.liferay.document.library.preview.document', version: '1.0.19'
compile group: 'com.liferay', name: 'com.liferay.document.library.preview.image', version: '1.0.18'
compile group: 'com.liferay', name: 'com.liferay.document.library.preview.lang', version: '1.0.6'
compile group: 'com.liferay', name: 'com.liferay.document.library.preview.video', version: '1.0.17'
compile group: 'com.liferay', name: 'com.liferay.document.library.api', version: '5.2.6'

 

DLWebComponentProvider dlWebComponentProvider = DLWebComponentProvider.getDLWebComponentProvider();
DLAdminDisplayContextProvider dlAdminDisplayContextProvider = dlWebComponentProvider.getDLAdminDisplayContextProvider();
DLDisplayContextProvider dlDisplayContextProvider = dlWebComponentProvider.getDLDisplayContextProvider();
DLRequestHelper dlRequestHelper = new DLRequestHelper(request);

in init.jsp i used above code and getting the below error.

 PWC6033: Error in Javac compilation for JSP__PWC6199: Generated servlet error:_package com.liferay.document.library.web.internal.util does not exist

 

Please let me know some one how i want to display the document preview with info tab.

thumbnail
Aravinth Kumar, modified 3 Years ago.

RE: liferay 7.2 : How to display document preview in custom portlet

Regular Member Posts: 152 Join Date: 6/26/13 Recent Posts

Hi Srini, 

Worked on same scenario in 6.2 long time back.

Please check below link

http://liferayplanet.blogspot.com/2015/05/browse-file-from-document-library-in.html

 

Regards,

Aravinth