Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Document Viewer in Document Library Portlet Manikandan S June 23, 2011 9:41 PM
RE: Document Viewer in Document Library Portlet Manikandan S July 12, 2011 11:01 PM
RE: Document Viewer in Document Library Portlet Victor Zorin July 13, 2011 2:02 AM
RE: Document Viewer in Document Library Portlet Leo Pratlong July 13, 2011 2:32 AM
RE: Document Viewer in Document Library Portlet Victor Zorin July 13, 2011 2:58 AM
RE: Document Viewer in Document Library Portlet my phuong December 5, 2012 11:36 PM
RE: Document Viewer in Document Library Portlet Manikandan S July 13, 2011 4:04 AM
RE: Document Viewer in Document Library Portlet my phuong May 17, 2013 3:30 AM
RE: Document Viewer in Document Library Portlet Victor Zorin May 20, 2013 5:49 PM
RE: Document Viewer in Document Library Portlet Muhammad Shuhir Idris September 16, 2013 11:50 PM
RE: Document Viewer in Document Library Portlet Juan Gonzalez July 13, 2011 3:29 AM
RE: Document Viewer in Document Library Portlet Manikandan S July 13, 2011 4:10 AM
RE: Document Viewer in Document Library Portlet Leo Pratlong July 13, 2011 5:34 AM
RE: Document Viewer in Document Library Portlet Manikandan S July 13, 2011 5:57 AM
RE: Document Viewer in Document Library Portlet Leo Pratlong July 13, 2011 6:48 AM
RE: Document Viewer in Document Library Portlet Manikandan S July 13, 2011 9:10 PM
RE: Document Viewer in Document Library Portlet Manikandan S August 19, 2011 12:26 AM
RE: Document Viewer in Document Library Portlet Vijay Mudivedu October 11, 2011 4:00 AM
RE: Document Viewer in Document Library Portlet Manikandan S October 11, 2011 9:50 PM
RE: Document Viewer in Document Library Portlet Firas BD February 7, 2012 5:19 AM
RE: Document Viewer in Document Library Portlet Juan Gonzalez February 7, 2012 6:57 AM
RE: Document Viewer in Document Library Portlet Firas BD February 7, 2012 7:19 AM
RE: Document Viewer in Document Library Portlet Sergio González February 7, 2012 7:24 AM
RE: Document Viewer in Document Library Portlet Firas BD February 7, 2012 8:19 AM
RE: Document Viewer in Document Library Portlet Juan Gonzalez February 7, 2012 7:30 AM
RE: Document Viewer in Document Library Portlet Juan Gonzalez February 7, 2012 7:33 AM
RE: Document Viewer in Document Library Portlet Igor Barma February 7, 2012 8:25 AM
RE: Document Viewer in Document Library Portlet Firas BD February 7, 2012 8:33 AM
RE: Document Viewer in Document Library Portlet Igor Barma February 7, 2012 8:52 AM
RE: Document Viewer in Document Library Portlet Firas BD February 8, 2012 6:53 AM
RE: Document Viewer in Document Library Portlet Natalie D March 19, 2012 4:35 AM
RE: Document Viewer in Document Library Portlet Hitoshi Ozawa March 19, 2012 5:38 AM
Manikandan S
Document Viewer in Document Library Portlet
June 23, 2011 9:41 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Hi all,

I want to include the facility Document Viewer in Document Library portlet that is no need to download the files.

See the below link,

http://www.scribd.com/doc/58341614/Longest-Day

How to show the Document Viewer same as the above link?
Manikandan S
RE: Document Viewer in Document Library Portlet
July 12, 2011 11:01 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Any help from Liferay guys?
Victor Zorin
RE: Document Viewer in Document Library Portlet
July 13, 2011 2:02 AM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1176

Join Date: April 14, 2008

Recent Posts

We have a PDF document viewer portlet, that produces imagery out of Liferay Document Library.
Have a look at its live use here. If that's something you need, I can email it to you.
Leo Pratlong
RE: Document Viewer in Document Library Portlet
July 13, 2011 2:32 AM
Answer

Leo Pratlong

Rank: Expert

Posts: 362

Join Date: July 6, 2010

Recent Posts

Victor Zorin:
We have a PDF document viewer portlet, that produces imagery out of Liferay Document Library.
Have a look at its live use here. If that's something you need, I can email it to you.


Hi !

Is it a community plugin or a non OpenSource plugin ? Because I am interested in your PDF viewer for Document Library.
Please, let me know if it's possible to get it and which are the usage restrictions.

Thx !
Victor Zorin
RE: Document Viewer in Document Library Portlet
July 13, 2011 2:58 AM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1176

Join Date: April 14, 2008

Recent Posts

No, it is not an open source product. Will be available for downloading from 'marketplace' portal in a couple of weeks time, supports 3 license types, free by default, DIY and EE. We expect this portlet it to be a low cost item.
Juan Gonzalez
RE: Document Viewer in Document Library Portlet
July 13, 2011 3:29 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2068

Join Date: October 28, 2008

Recent Posts

Mani kandan:
Hi all,

I want to include the facility Document Viewer in Document Library portlet that is no need to download the files.

See the below link,

http://www.scribd.com/doc/58341614/Longest-Day

How to show the Document Viewer same as the above link?


Liferay 6.1 includes document preview (PDF, DOC), so you can view all the document without downloading file. Download latest liferay sources, compile and deploy to test it.
Manikandan S
RE: Document Viewer in Document Library Portlet
July 13, 2011 4:04 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Victor Zorin:
We have a PDF document viewer portlet, that produces imagery out of Liferay Document Library.
Have a look at its live use here. If that's something you need, I can email it to you.


Can I get some idea about this PDF document viewer portlet?
Manikandan S
RE: Document Viewer in Document Library Portlet
July 13, 2011 4:10 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Juan Gonzalez P:
Mani kandan:
Hi all,

I want to include the facility Document Viewer in Document Library portlet that is no need to download the files.

See the below link,

http://www.scribd.com/doc/58341614/Longest-Day

How to show the Document Viewer same as the above link?


Liferay 6.1 includes document preview (PDF, DOC), so you can view all the document without downloading file. Download latest liferay sources, compile and deploy to test it.


I am using LR 6.0.6.... Where can I find the document preview?
Leo Pratlong
RE: Document Viewer in Document Library Portlet
July 13, 2011 5:34 AM
Answer

Leo Pratlong

Rank: Expert

Posts: 362

Join Date: July 6, 2010

Recent Posts

Mani kandan:

I am using LR 6.0.6.... Where can I find the document preview?


You can find it on the trunk of liferay SVN, here : http://svn.liferay.com/repos/public/portal/trunk/
It'll be stable for the 6.1 version which will be released soon.
login: guest
empty passwd
Manikandan S
RE: Document Viewer in Document Library Portlet
July 13, 2011 5:57 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

You can find it on the trunk of liferay SVN, here : http://svn.liferay.com/repos/public/portal/trunk/
It'll be stable for the 6.1 version which will be released soon.
login: guest
empty passwd

Can i Upgrade it from LR 6.0.6 to 6.1?
Using this attached script sql file?
Attachments: update.sql (10.0k)
Leo Pratlong
RE: Document Viewer in Document Library Portlet
July 13, 2011 6:48 AM
Answer

Leo Pratlong

Rank: Expert

Posts: 362

Join Date: July 6, 2010

Recent Posts

Since the Liferay 6.1 version is still not an official release (but a trunk), I don't know if you'll be able to upgrade from 6.0.6 to 6.1 (the code and the database may change until the official release).
I have the same problem as you. I'll stay on 6.0.6 and when the 6.1 will be released, I'll make my upgrade. I think that's more secure (and I'm not an expert in Liferay, so it's less dangerous to do that way emoticon ).
Manikandan S
RE: Document Viewer in Document Library Portlet
July 13, 2011 9:10 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Thanks Leo, Let's wait for an official release..
Manikandan S
RE: Document Viewer in Document Library Portlet
August 19, 2011 12:26 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Hi Leo,

Here the link for Liferay 6.1 nighty build
Liferay 6.1
Vijay Mudivedu
RE: Document Viewer in Document Library Portlet
October 11, 2011 4:00 AM
Answer

Vijay Mudivedu

Rank: New Member

Posts: 21

Join Date: July 18, 2011

Recent Posts

Hey Mani et al.,,

Do you know the latest date of 6.1 release?

I saw a nightly build of 6.1 dated10th October 2011. Are there going to be further builds? Do you the release date?

Thanks,
Vijay
Manikandan S
RE: Document Viewer in Document Library Portlet
October 11, 2011 9:50 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Since the Liferay 6.1 version is still not an official release (but a trunk).
It'll be stable for the 6.1 version which will be released soon.
Firas BD
RE: Document Viewer in Document Library Portlet
February 7, 2012 5:19 AM
Answer

Firas BD

Rank: Junior Member

Posts: 43

Join Date: October 3, 2011

Recent Posts

Juan Gonzalez P:
Mani kandan:
Hi all,

I want to include the facility Document Viewer in Document Library portlet that is no need to download the files.

See the below link,

http://www.scribd.com/doc/58341614/Longest-Day

How to show the Document Viewer same as the above link?


Liferay 6.1 includes document preview (PDF, DOC), so you can view all the document without downloading file. Download latest liferay sources, compile and deploy to test it.



Hi Juan

how to do that? I can preview pdf, audio, video files and I can't preview the office and other document files ???
Juan Gonzalez
RE: Document Viewer in Document Library Portlet
February 7, 2012 6:57 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2068

Join Date: October 28, 2008

Recent Posts

Firas B&D:
Juan Gonzalez P:
Mani kandan:
Hi all,

I want to include the facility Document Viewer in Document Library portlet that is no need to download the files.

See the below link,

http://www.scribd.com/doc/58341614/Longest-Day

How to show the Document Viewer same as the above link?


Liferay 6.1 includes document preview (PDF, DOC), so you can view all the document without downloading file. Download latest liferay sources, compile and deploy to test it.



Hi Juan

how to do that? I can preview pdf, audio, video files and I can't preview the office and other document files ???


Hi Firas,

To convert office files you'd have to enable openoffice integration. Please search forums/wiki for getting info on how to do it.
Firas BD
RE: Document Viewer in Document Library Portlet
February 7, 2012 7:19 AM
Answer

Firas BD

Rank: Junior Member

Posts: 43

Join Date: October 3, 2011

Recent Posts

Hi Juan, OpenOffice integration is enabled and I can convert documents but when I click to an extension to convert file It will be downloaded not preview with this extension.
There's not a solution to preview automatically office files ?
Sergio González
RE: Document Viewer in Document Library Portlet
February 7, 2012 7:24 AM
Answer

Sergio González

LIFERAY STAFF

Rank: Expert

Posts: 274

Join Date: January 7, 2010

Recent Posts

Hi Firas,
The way Liferay previews is working is the following:
  1. The file is uploaded to Documents and Media
  2. This file is converted to PDF using (openoffice/libreoffice)
  3. PDFBox converts the PDF to images
  4. Images are displayed in the viewer and you can see them by clicking the document


Besides this functionality, you can also convert the document to the formats that openoffice/libreoffice supports for exporting.
Juan Gonzalez
RE: Document Viewer in Document Library Portlet
February 7, 2012 7:30 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2068

Join Date: October 28, 2008

Recent Posts

Firas B&D:
Hi Juan, OpenOffice integration is enabled and I can convert documents but when I click to an extension to convert file It will be downloaded not preview with this extension.
There's not a solution to preview automatically office files ?


Yep, it should work too only enabling openoffice integration. Sometimes it's a matter of file extension. Please can you attach here the screen?
Juan Gonzalez
RE: Document Viewer in Document Library Portlet
February 7, 2012 7:33 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2068

Join Date: October 28, 2008

Recent Posts

Firas BD:
Hi Juan, OpenOffice integration is enabled and I can convert documents but when I click to an extension to convert file It will be downloaded not preview with this extension.
There's not a solution to preview automatically office files ?


BTW, please check if there is any error in logs.
Firas BD
RE: Document Viewer in Document Library Portlet
February 7, 2012 8:19 AM
Answer

Firas BD

Rank: Junior Member

Posts: 43

Join Date: October 3, 2011

Recent Posts

Hi Sergio,

Thanks for your information and how it works, but I need the configuration, what I have to integrate and what are the steps I should do, knowing that I am using Liferay 6.1 bundled with Tomcat 7.
Igor Barma
RE: Document Viewer in Document Library Portlet
February 7, 2012 8:25 AM
Answer

Igor Barma

Rank: New Member

Posts: 16

Join Date: September 30, 2009

Recent Posts

Hi,
don't know if it can help but it's what i did to convert files from document librairy in order to read it on frontend.
You have to install some tools on your server:
mencoder for the video
flvmeta to add metadata to flv files (pseudo streaming)
ffmpeg for sound
swfTools for image and pdf!!!
and of course you need openOffice for all office doc.

All the documents are converts to swf and show in flewpaper inside the browser (call tragetExtension with swf)
For video we use jwplayer and flv format (call tragetExtension with flv)

I attached some files in order you can take example on how we realize conversions.

You have to adapt it to fit your need!

I know it's not always the best way to do but it works for us...
Igor
Attachments: DocumentConversionUtil.java (19.3k), FLVPseudoStreamer.java (18.5k), GetFileAction.java (14.3k)
Firas BD
RE: Document Viewer in Document Library Portlet
February 7, 2012 8:33 AM
Answer

Firas BD

Rank: Junior Member

Posts: 43

Join Date: October 3, 2011

Recent Posts

Thx Igor, I will try your steps emoticon
Igor Barma
RE: Document Viewer in Document Library Portlet
February 7, 2012 8:52 AM
Answer

Igor Barma

Rank: New Member

Posts: 16

Join Date: September 30, 2009

Recent Posts

ok, but I think you have inspire you from what I did and rewrite all this step for your platform...
I wrote this for a liferay 5.2.3
Hope it helps you
Firas BD
RE: Document Viewer in Document Library Portlet
February 8, 2012 6:53 AM
Answer

Firas BD

Rank: Junior Member

Posts: 43

Join Date: October 3, 2011

Recent Posts

Hi all, everything is alright but I got this error when I am uploading a file.doc
I could preview the document, but Liferay 6.1 can't show me the Automatically Extracted Metadata:


the error log:
14:15:57,615 ERROR [TikaRawMetadataProcessor:103] Unable to parse
org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.OfficeParser@2610e8
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:199)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:135)
at com.liferay.portal.metadata.TikaRawMetadataProcessor.extractMetadata(TikaRawMetadataProcessor.java:100)
at com.liferay.portal.metadata.TikaRawMetadataProcessor.extractMetadata(TikaRawMetadataProcessor.java:54)
at com.liferay.portal.metadata.BaseRawMetadataProcessor.getRawMetadataMap(BaseRawMetadataProcessor.java:62)
at com.liferay.portal.kernel.metadata.RawMetadataProcessorUtil.getRawMetadataMap(RawMetadataProcessorUtil.java:41)
at com.liferay.portlet.documentlibrary.util.RawMetadataProcessorImpl.saveMetadata(RawMetadataProcessorImpl.java:100)
at com.liferay.portlet.documentlibrary.util.RawMetadataProcessorUtil.saveMetadata(RawMetadataProcessorUtil.java:89)
at com.liferay.portlet.documentlibrary.messaging.RawMetadataProcessorMessageListener.doReceive(RawMetadataProcessorMessageListener.java:33)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:101)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IndexOutOfBoundsException: Index: 16, Size: 2
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.apache.poi.hwpf.model.ListTables.getOverride(ListTables.java:165)
at org.apache.poi.hwpf.usermodel.ListEntry.<init>(ListEntry.java:41)
at org.apache.poi.hwpf.usermodel.Range.getParagraph(Range.java:831)
at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:80)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:182)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
... 15 more
14:15:57,618 ERROR [SerialDestination:104] Unable to process message {destinationName=liferay/document_library_raw_metadata_processor, response=null, responseDestinatio
nName=null, responseId=null, payload=com.liferay.portal.repository.liferayrepository.model.LiferayFileVersion@b5edf9, values={principalPassword=firas, principalName=2,
companyId=1}}
com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.kernel.exception.SystemException: java.io.IOException: Unexpected RuntimeException from
org.apache.tika.parser.microsoft.OfficeParser@2610e8
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:31)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:101)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.liferay.portal.kernel.exception.SystemException: java.io.IOException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.OfficeParser@2610
e8
at com.liferay.portal.metadata.TikaRawMetadataProcessor.extractMetadata(TikaRawMetadataProcessor.java:57)
at com.liferay.portal.metadata.BaseRawMetadataProcessor.getRawMetadataMap(BaseRawMetadataProcessor.java:62)
at com.liferay.portal.kernel.metadata.RawMetadataProcessorUtil.getRawMetadataMap(RawMetadataProcessorUtil.java:41)
at com.liferay.portlet.documentlibrary.util.RawMetadataProcessorImpl.saveMetadata(RawMetadataProcessorImpl.java:100)
at com.liferay.portlet.documentlibrary.util.RawMetadataProcessorUtil.saveMetadata(RawMetadataProcessorUtil.java:89)
at com.liferay.portlet.documentlibrary.messaging.RawMetadataProcessorMessageListener.doReceive(RawMetadataProcessorMessageListener.java:33)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
... 5 more
Caused by: java.io.IOException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.OfficeParser@2610e8
at com.liferay.portal.metadata.TikaRawMetadataProcessor.extractMetadata(TikaRawMetadataProcessor.java:105)
at com.liferay.portal.metadata.TikaRawMetadataProcessor.extractMetadata(TikaRawMetadataProcessor.java:54)
... 11 more
Natalie D
RE: Document Viewer in Document Library Portlet
March 19, 2012 4:35 AM
Answer

Natalie D

Rank: Junior Member

Posts: 55

Join Date: February 6, 2012

Recent Posts

I know it is quite old thread, but my answer may be useful for somebody.

Exception below
1org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.OfficeParser

Is caused by bug inside Apache Tika ver 0.9 tool which is being used under the hood be Liferay CE 6.1.0. By the way: this bug has been fixed in Apache Tika 1.0, but upgrading just one jar amog tens of others isn't trivial task.
Hitoshi Ozawa
RE: Document Viewer in Document Library Portlet
March 19, 2012 5:38 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

Does anybody know if there is an issue created to fix this?
my phuong
RE: Document Viewer in Document Library Portlet
December 5, 2012 11:36 PM
Answer

my phuong

Rank: New Member

Posts: 8

Join Date: November 26, 2012

Recent Posts

Victor Zorin:
No, it is not an open source product. Will be available for downloading from 'marketplace' portal in a couple of weeks time, supports 3 license types, free by default, DIY and EE. We expect this portlet it to be a low cost item.



Hi, I downloaded the war (trial version) and deployed it into Liferay portal ce 6.1. But in log file show error:
"ERROR [JFig:105] *** Unable to create configuration dictionary. Resource not found in classpath: vt-pc.config.xml ** "
Can you help me, please!
my phuong
RE: Document Viewer in Document Library Portlet
May 17, 2013 3:30 AM
Answer

my phuong

Rank: New Member

Posts: 8

Join Date: November 26, 2012

Recent Posts

my email is sarahsam@ymail.com. Could you send me that portlet, thanks for help
Victor Zorin
RE: Document Viewer in Document Library Portlet
May 20, 2013 5:49 PM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1176

Join Date: April 14, 2008

Recent Posts

This portlet should work with this error message, it just says that the licence file could not be located, so portlet shall take the default licence settings.

If it does not work in your environment, use the 'Contact Us' form to get the assistance.
Muhammad Shuhir Idris
RE: Document Viewer in Document Library Portlet
September 16, 2013 11:50 PM
Answer

Muhammad Shuhir Idris

Rank: New Member

Posts: 4

Join Date: August 4, 2011

Recent Posts

Hi Victor,

The live sample that you have given look nice. Could you show me to bind with my project as URL ?