cancel
Showing results for 
Search instead for 
Did you mean: 

Share previever document layout sometimes broken?

zladuric
Champ on-the-rise
Champ on-the-rise
Hello,

I wonder if something can be done about the 4.2c Share content previewer. It works with some of my PDFs and Office documents, but on others it is broken.

In example, if I load this https://www.dropbox.com/s/r17c5tj2tooim82/What%20is%20Magic%20Briefcase.pdf file, my previewer looks broken, like this: https://www.dropbox.com/s/3ac4ei0g8nnkh6o/broken_preview.png. The thumbnails in document library look fine, but the preview on document-details page is broken.

I believe I it may be connected issues with PDF files exported from Microsoft Office or Libre Office. I'm using LibreOffice 3.5 on the server.

Can anybody say if they've had similar issues or point me in the right direction?
13 REPLIES 13

mnemonic
Champ on-the-rise
Champ on-the-rise
I noticed that a prebuild pdf2swf (0.9.1) binary from a bitnami stack works flawlessly, so it seems to be caused by the repository version (0.9.2) of Ubuntu 12.04.

Regards,

Jan

loftux
Star Contributor
Star Contributor
See https://issues.alfresco.com/jira/browse/ALF-15843
What I did for now (as previously mentioned) was to downgrade swftools. I went with 0.9.0.

And even better kan be to try PdfJs viewer from Share Extras Media Viewers add-on http://code.google.com/p/share-extras/wiki/MediaViewers
Use PdfJs and the Embed viewer, and you most likely will not have to see flash based previews.
More reading http://blogs.alfresco.com/wp/wabson/2013/02/01/media-viewers-2-5-released/ and http://loftux.com/2012/11/30/media-viewers-extending-alfresco-viewer-capability/

mnemonic
Champ on-the-rise
Champ on-the-rise
Unfortunately I get a "Could not load PDF content" error with PdfJs. Using Media-Viewers 2.5 and Alfresco 4.2.d (nightly build). PDF is shown ok in browser with standard viewer (PDF.js).

Regards,

Jan

loftux
Star Contributor
Star Contributor
Since I was the one introducing Media viewers into this topic, sorry if this thread goes a bit off topic.

I tested the latest Media Viewers with Nightly downloaded today. I could not replicate any problems, either with pdf:s or office document transformed to pdf:s. Tested with Chrome, Firefox on Chrome, IE on win 7. Tested with small pdf:s and one 30Mb pdf with 1300 pages.

So it may be that one specific pdf that is the problem, does it work for others? We try to keep up to date with the pdf.js lib, but we are slightly behind.

If you do want to sort it out, start a new thread where you post alfresco.log, and check tomcat/logs/catalina.out, it may be some transfer error there. Be specific on what browser and os you are using.