sjarvela / kloudspeaker

Document management system
GNU General Public License v2.0
95 stars 40 forks source link

PDF viewer #109

Open luchris opened 8 years ago

luchris commented 8 years ago

Hi,

I was previously using Google Docs to view PDF files. Today I am unable to view any.

http(s)://docs.google.com/viewer returned 400 error. I think Google changed something and caused it to be broken.

So I tried to use the PDF plugin. This plugin does not work too.

Any idea how to view PDF again?

Thanks LC

sjarvela commented 8 years ago

It seems Google Docs viewer page is removed, but the viewer itself still exists, only changed to https, for example this works:

https://docs.google.com/viewer?url=http://research.google.com/archive/bigtable-osdi06.pdf

So you could modify your "backend/plugin/FileViewerEditor/viewers/Google/Google.viewer.php", there is function "getGoogleViewerUrl" in the end, change "http" into "https" and try.

The viewer "PDF" is experimental viewer, using PHP ImageMagick to convert PDF into image, but is not that good alternative.

Better would be to use "ViewerJS" viewer.