cancel
Showing results for 
Search instead for 
Did you mean: 

Media-Viewers could not load PDF content

mnemonic
Champ on-the-rise
Champ on-the-rise
I'm trying to implement Media-Viewers 2.5 on Alfresco 2.4.d (nightly), but whatever I tried sofar, I still get a "Could not load PDF content" error. This happens with pdf's, office documents, plain-text. Running on Ubuntu 12.04 LTS with OpenJDK 7 and Tomcat 7. I also tried with Oracle Java 7, but it also returns the error. I used the new installation procedure with Media-Viewers 2.5. The pdf.js preview windows is shown, file download and documentlink from within the preview window are working, so the pdf is loaded, but the content is not shown. What do I wrong here?

FYI, the same happens when I configure PdfJs by editing web-preview.get.config.xml
catalina.out and alfresco.log show no errors besides from a missing ffmpeg binary (which I do not use)

Screenshots:
Module Deployment
PdfJs Preview

Regards,

Jan
7 REPLIES 7

ebogaard
Champ on-the-rise
Champ on-the-rise
I've got the same problem here on 4.2c: enabled both PdfJs configuration and -viewer, now the previews get a "Could not load PDF content" error. After disabling the modules, all is well again. This is woth several PDF files.
This is with both the latest Chrome and Firefox 18.0.1.

chabacha
Champ in-the-making
Champ in-the-making
I have the same Problem. The steps I have done so far:

1) Fresch install of alfresco 4.2.c on Ubuntu 12.10 using <strong>alfresco-community-4.2.c-installer-linux-x64</strong>
2) Copied <strong>media-viewers-2.5.jar</strong> to <strong>alfresco-4.2.c/tomcat/shared/lib</strong>
3) Called <a>http://localhost:8080/share/page/modules/deploy</a>
4) moved <strong>PdfJs Configuration</strong> and <strong>PdfJs Viewer</strong> from column <strong>Available Modules</strong> to column <strong>Deployed Modules</strong>
5) pressed "Apply Changes"

Expected result => PDF Documents Preview is displayed using PDF.JS
Obtained result => Nothing is displayed but the message "could not load PDF content"

What am I missing here?

Best regards,
Cha Bacha

alexist
Champ in-the-making
Champ in-the-making
Hi,

The minified version of pdfjs is broken. Bug is fixed in mediaviewer 2.5.1

http://code.google.com/p/share-extras/issues/detail?id=133

mnemonic
Champ on-the-rise
Champ on-the-rise
Media-Viewers 2.5.1 solves this problem. Tnx!

Regards,

Jan

chabacha
Champ in-the-making
Champ in-the-making
.. But do not forget to empty your browser cache! Otherwise your browser could keep using the old minified pdf.js version.

Respects,
Cha

sharifu
Confirmed Champ
Confirmed Champ
this is not working for 4.2.d but works for 4.2.c. also see errors below for ffmpeg


ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.flv.jpg.priority=50
2013-09-12 14:29:36,571  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.flv.jpg.supported=true
2013-09-12 14:29:36,571  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.mpg.jpg.priority=50
2013-09-12 14:29:36,571  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.mpg.jpg.supported=true
2013-09-12 14:29:36,571  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.mp4.jpg.priority=50
2013-09-12 14:29:36,571  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.mp4.jpg.supported=true
2013-09-12 14:29:36,571  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.m4v.jpg.priority=50
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.m4v.jpg.supported=true
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.mpeg2.jpg.priority=50
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.mpeg2.jpg.supported=true
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.movie.jpg.priority=50
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.movie.jpg.supported=true
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.avi.jpg.priority=50
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.avi.jpg.supported=true
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.mov.jpg.priority=50
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.mov.jpg.supported=true
2013-09-12 14:29:36,572  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.asf.jpg.priority=50
2013-09-12 14:29:36,573  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.asf.jpg.supported=true
2013-09-12 14:29:36,573  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.wmv.jpg.priority=50
2013-09-12 14:29:36,573  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.wmv.jpg.supported=true
2013-09-12 14:29:36,573  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.avx.jpg.priority=50
2013-09-12 14:29:36,573  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.avx.jpg.supported=true
2013-09-12 14:29:36,573  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.ogv.jpg.priority=50
2013-09-12 14:29:36,573  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.ogv.jpg.supported=true
2013-09-12 14:29:36,573  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.webm.jpg.priority=50
2013-09-12 14:29:36,573  ERROR [content.transform.ContentTransformerHelper] [localhost-startStop-1] content.transformer.ffmpeg.thumbnail.extensions.webm.jpg.supported=true

ddraper
World-Class Innovator
World-Class Innovator
Please raise a bug at http://issues.alfresco.com