Hello,

I setted up pdf files attachements to user profiles.
If i set the display setting for this field to "fileviewer" or "embed fileviewer" the bookreader is launched but the pdf file is not rendered.
Take a look here: http://www.drupality.be/users/jbfelix then click on "View" to display the page http://www.drupality.be/file/95

Thanks in advance for your help.

CommentFileSizeAuthor
#4 fileviewer.module.zip2.57 KBbaygon
#1 fileviewer.png11.21 KBjbfelix
#1 embed.png11.68 KBjbfelix
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jbfelix’s picture

FileSize
11.68 KB
11.21 KB

Btw there is a little mistake in the display settings: "fileviwer" and "embed fileviwer" in place of "fileviewer"

BenK’s picture

Subscribing

shenzhuxi’s picture

Do you install poppler-util http://poppler.freedesktop.org/ for converting pdf?

baygon’s picture

FileSize
2.57 KB

It's just a sugestion:

I found this module create rendered file in wrong directory and the render code part was comented. I just fix the code.

Folow fileviewer.module.fixed zipped, just unzip it, rename to fileviewer.module e try in your site. If doesn't work, try uncoment lines 112 and 113. Don't forget backup first your original fileviewer.module.

I still waiting an oficial update or patch from shenzhuxi, but it's just a trick to use till there. Im not sure is fully functional.

Good luck

shenzhuxi’s picture

I test profile 2 and fileviewer HEAD, and they works well.
Please check out the latest codes.

@baygon
hook_file_update is used for file converting with file is uploaded. Do it in the display stage it's not necessary.
You may need to make your file directory permission right for poppler to write the png files in it.