I don't see why not, as it is just a client-side Javascript package. You 
would create one web2py controller action to serve the viewer itself (they 
provide an HTML template), and then you would also have to serve the 
individual files to load in the viewer.

So, you might host the viewer at /myapp/default/viewerjs. Then suppose you 
want to view a PDF file from your app's static folder -- in that case, the 
URL would be:

/myapp/default/viewerjs/#../myapp/static/my.pdf

Anthony

On Wednesday, May 25, 2016 at 6:01:49 PM UTC-4, Oli wrote:
>
> is there a possibility to integrate the documentviewer viewerjs?
>
> http://viewerjs.org/
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to