When I first installed this module, files uploaded and displayed just fine. However, in the last month anything uploaded will not display in the embedded fileviewer. The error message that is this issue's title pops up in the viewer instead, now. I understand this module is being merged into the Media PDF Module, but it would be nice for it to not be broken in the meantime.

I've not been able to track the source of the error, but would be happy to contribute to fixing it if I have some direction.

You can see an example of the error here. You can see an example of a PDF uploaded prior to the error that still displays correctly here.

Thanks.

Comments

csuggs4’s picture

Perhaps mine is a duplicate of this issue: http://drupal.org/node/1324820 ?

csuggs4’s picture

Well, I think my problem is a lack of poppler on the server. Seems I didn't catch that when we switched from development on my local machine to the staging server, that that's maybe when the embedded fileviewer stopped working. Ticket now in to host.

snipe’s picture

Hello there, any one has luck with the error?

I'll take a look at the code, in while, let me know if anyone has already solved.
my code stops working after fresh installation on the same server.

snipe’s picture

I think using ImageMagic will solve this issues, as some times some servers do not have "pdftoppm ",

pdftoppm is used in fileviewer.module in fileviewer_pdftopng() function

my server is not converting the pdf to png using this command, but it does using the "convert" program

convert file.pdf file.png