cancel
Showing results for 
Search instead for 
Did you mean: 

Share Document Viewer Issue

ndelvalle
Champ in-the-making
Champ in-the-making
I was able to successfully install Alfresco Share stable today with little problem. I loaded a few sample documents into a newly created site and entered into the document viewer to test the new full screen feature. I noticed that I can only view the first page of the document while in full screen or when I esc back to the normal view. Entering into the share document viewer for the initial view of any document only displays the zoom lens and zoom bar but no page navigation widgets. Is there a setting I'm missing that needs to be toggled in order for me to view the document in it's entirety using the page navigation buttons?

** Great thumbnails feature in the Document Library - that works like a charm - looks like the SWF tools are converting the views as designed. Hope someone can assist. Thanks for a great product.
8 REPLIES 8

fselendic
Champ in-the-making
Champ in-the-making
I was able to successfully install Alfresco Share stable today with little problem. I loaded a few sample documents into a newly created site and entered into the document viewer to test the new full screen feature. I noticed that I can only view the first page of the document while in full screen or when I esc back to the normal view. Entering into the share document viewer for the initial view of any document only displays the zoom lens and zoom bar but no page navigation widgets. Is there a setting I'm missing that needs to be toggled in order for me to view the document in it's entirety using the page navigation buttons?

** Great thumbnails feature in the Document Library - that works like a charm - looks like the SWF tools are converting the views as designed. Hope someone can assist. Thanks for a great product.

Hi.
Is your installation by any chance on Linux?
Check your logs for something like 
err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
If that happens, you will have to tell Alfresco the real path to pdf2swf.

In 3.0 Labs Stable you can do it in "your Alf path"/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties

Last line in that file says "swf.exe=./bin/pdf2swf". Type "which pdf2swf" to find where it is located on your installation (should be in /usr/local/bin if you compiled it yourself), and then change that line to "swf.exe=/usr/local/bin/pdf2swf" or whatever it is on your system.

Restart Alfresco, and keep in mind that Alfresco obviously caches thumbnails and previews of files that you've put in it before, so try with some different files.

What I think it happens (and hope someone can confirm it) is that pdf2swf transformer is not used at all, because Alf cannot find it, so transformations are done with OOfice, which somehow confuses DocLib new previewer, showing just first page of transformed document.

ndelvalle
Champ in-the-making
Champ in-the-making
I was able to successfully install Alfresco Share stable today with little problem. I loaded a few sample documents into a newly created site and entered into the document viewer to test the new full screen feature. I noticed that I can only view the first page of the document while in full screen or when I esc back to the normal view. Entering into the share document viewer for the initial view of any document only displays the zoom lens and zoom bar but no page navigation widgets. Is there a setting I'm missing that needs to be toggled in order for me to view the document in it's entirety using the page navigation buttons?

** Great thumbnails feature in the Document Library - that works like a charm - looks like the SWF tools are converting the views as designed. Hope someone can assist. Thanks for a great product.

Hi.
Is your installation by any chance on Linux?
Check your logs for something like 
err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
If that happens, you will have to tell Alfresco the real path to pdf2swf.

In 3.0 Labs Stable you can do it in "your Alf path"/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties

Last line in that file says "swf.exe=./bin/pdf2swf". Type "which pdf2swf" to find where it is located on your installation (should be in /usr/local/bin if you compiled it yourself), and then change that line to "swf.exe=/usr/local/bin/pdf2swf" or whatever it is on your system.

Restart Alfresco, and keep in mind that Alfresco obviously caches thumbnails and previews of files that you've put in it before, so try with some different files.

What I think it happens (and hope someone can confirm it) is that pdf2swf transformer is not used at all, because Alf cannot find it, so transformations are done with OOfice, which somehow confuses DocLib new previewer, showing just first page of transformed document.

Okay - yes I have installed it in Linux (Fedora 9) and yes I did forget to set the variables in the repository.properties file as described in your email. I restarted alfresco and now I just get a spinning wheel in the Share Document Library viewer. I can still view the thumbnails when I hover over document icons but no view of the document. I checked that opensoffice was listening which it is and also checked to make sure the pdf2swf was in fact located in /usr/bin. I am now getting a clean "no errors" log but still no view. My windows client is using "Flash 10". Could that be a problem?

fselendic
Champ in-the-making
Champ in-the-making
Flash 10 shouldn't be a problem, at least not on Windows.
Which version of swftools (pdf2swf) are you using? Can you check with typing 'pdf2swf -V' on command line? I suppose you didn't install and compile it by yourself, otherwise it would be in /usr/local/bin, not /usr/bin

Also, have you uploaded a new document or you are trying to view one that was uploaded before you changed repository.properties? How big is that document that you cannot preview?

ndelvalle
Champ in-the-making
Champ in-the-making
Flash 10 shouldn't be a problem, at least not on Windows.
Which version of swftools (pdf2swf) are you using? Can you check with typing 'pdf2swf -V' on command line? I suppose you didn't install and compile it by yourself, otherwise it would be in /usr/local/bin, not /usr/bin

Also, have you uploaded a new document or you are trying to view one that was uploaded before you changed repository.properties? How big is that document that you cannot preview?

The pdf2swf was installed using yum - the current version installed is 0.8.1. The file I'm attempting to view is a new file loaded after I modified the repository.properties file and restarted alfresco. It was only a 40K PDF file. Interestingly enough, the reason I used an rpm packaged install was because I kept getting a build error when attempting to build swftools from source. I figured using yum would resolve any dependency issues I was experiencing that may have been causing the build to error and not compile. I'll attempt to rebuild swftools from source and capture the error message.

Thanks.

fselendic
Champ in-the-making
Champ in-the-making
Flash 10 shouldn't be a problem, at least not on Windows.
Which version of swftools (pdf2swf) are you using? Can you check with typing 'pdf2swf -V' on command line? I suppose you didn't install and compile it by yourself, otherwise it would be in /usr/local/bin, not /usr/bin

Also, have you uploaded a new document or you are trying to view one that was uploaded before you changed repository.properties? How big is that document that you cannot preview?

The pdf2swf was installed using yum - the current version installed is 0.8.1. The file I'm attempting to view is a new file loaded after I modified the repository.properties file and restarted alfresco. It was only a 40K PDF file. Interestingly enough, the reason I used an rpm packaged install was because I kept getting a build error when attempting to build swftools from source. I figured using yum would resolve any dependency issues I was experiencing that may have been causing the build to error and not compile. I'll attempt to rebuild swftools from source and capture the error message.

Thanks.

Well, there's your problem  Smiley Very Happy It just doesn't work with 0.8.1, I think because 0.8.1 cannot produce version 9 swf files.
So, go and download http://www.swftools.org/swftools-2009-01-06-2243.tar.gz, and try to compile and install that version.

ndelvalle
Champ in-the-making
Champ in-the-making
Thanks.
Well, there's your problem  Smiley Very Happy It just doesn't work with 0.8.1, I think because 0.8.1 cannot produce version 9 swf files.
So, go and download http://www.swftools.org/swftools-2009-01-06-2243.tar.gz, and try to compile and install that version.

Seems like each time I make an attempt to compile SWFTools from source I keep getting an error as seen below
make[2]: g++: Command not found
make[2]: *** [GFXOutputDev.o] Error 127
make[2]: Leaving directory `/home/temp/swftools-2009-02-16-1757/lib/pdf'
make[1]: *** [libpdf.a] Error 2
make[1]: Leaving directory `/home/temp/swftools-2009-02-16-1757/lib'
make: *** [all] Error 2

Anyone have an idea what I may be overlooking? I've checked to make sure I had gcc+ installed which I do. and I also ran "make" as root. Still same problems. Any help would be greatly appreciated. While these may not seem related to Alfresco Share - it is related to the problem I'm having not being able to see the documents rendered in the Document Library Viewer of Alfresco Share. Thanks again.

nadaoneal
Champ in-the-making
Champ in-the-making
Hey Ndelvalle,
I had a similar problem once. I was also getting:

make[1]: *** No rule to make target `../lib/libpdf.a', needed by `pdf2swf'.  Stop.
make[1]: Leaving directory `/home/nco2104/swftools-0.8.1/src'
make: *** [all] Error 2

It looks like you're running Fedora, so try yum install automake gcc* , which will install both automake and all the random gcc supporting libraries. I'm not sure which one fixes the problem.

ndelvalle
Champ in-the-making
Champ in-the-making
Hey Nadaoneal,
Thanks for the tip - I installed automake and gcc* and was able to compile the latest swftools suite. The Share Document Viewer now displays the document in the viewer. Thanks again.


Hey Ndelvalle,
I had a similar problem once. I was also getting:

make[1]: *** No rule to make target `../lib/libpdf.a', needed by `pdf2swf'.  Stop.
make[1]: Leaving directory `/home/nco2104/swftools-0.8.1/src'
make: *** [all] Error 2

It looks like you're running Fedora, so try yum install automake gcc* , which will install both automake and all the random gcc supporting libraries. I'm not sure which one fixes the problem.