cancel
Showing results for 
Search instead for 
Did you mean: 

PDF.js and Alfresco Share

sokolko
Champ in-the-making
Champ in-the-making
Hello, all!
I have been using Alfresco 3.4.d Community for about six months and I really like it. But a couple of days ago we faced a strange problem: Alfresco hangs on high load and pdf document preview displays a strange error: "preview cannot be loaded". As far as I managed to find out this can be solved by replacing standard share viewer with PDF.js. Does anyone know how to install PDF.js on Alfresco 3.4.d community? Or can someone please give me a link to some manual?
4 REPLIES 4

angello0571
Champ on-the-rise
Champ on-the-rise
Hello,

I used this great viewer for Alfresco 4, but there is an explanation about PDFjs component. I guess this will be useful for you http://code.google.com/p/share-extras/wiki/MediaViewers

If this works foe you I'll be glad to help Smiley Happy

Best Regards

sokolko
Champ in-the-making
Champ in-the-making
Thanks for your reply, it's a nice project. But there are some difficulties with it. I tried to install share-extensions-media-viewers on my alfresco 3.4.d server, but pdfjs from this package didn't get activated. I contacted one of the maintainers of extensions project, Will Abson, who was very helpful. He told me there's some limited functionality, that can be accessed from Alfresco 3.4, so now I'll test Alfresco 4.0 and make my decidion: either upgrade and use newer version with full functionality or develop my custom project, based on pdfjs for alfresco 3.4, but that might be not am easy task Smiley Happy

jspuchau
Champ in-the-making
Champ in-the-making
Hi,

I faced the same problem not a long time ago. What I made was modify the Alfresco 3.4 to include the plugable Web Previewers that the version 4 has.
I made this copying and adapting the source code from 4.0 version into my own Alfresco 3.4.

I hope this would be helpful.

Jorge.

sokolko
Champ in-the-making
Champ in-the-making
Thanks all for the replies! It was interesting to learn something new about Alfresco and its features, but the problem is solved now in the simplest way: lack of resources was eliminated Smiley Happy We installed it on a VM with only 1G of RAM. It was hardly enough for the poor Java to survive)) Now we added RAM up to 2G and everything works just fine Smiley Happy So, be careful and give resources to Alfresco and it won't fail Smiley Happy