On Wednesday, January 7, 2015 4:16:54 AM UTC-8, Dominic Balassone wrote:
>
> Hey there,
>
> I'm simply trying to allow my users to click on a hyperlink which will 
> send them to a new tab where they are viewing they pdf (or asked to 
> download a pdf viewing plugin for their browser).
>
> I have already set my pdfs to be saved in the static directory, in a 
> directory called "pdfs," although I do not know if this is actually 
> necessary.
>
> Any advice?
>

I'd start by copying all the relevant parts of the image viewing example 
from the book:
<URL:http://web2py.com/books/default/chapter/29/03/overview#An-image-blog>

 You'll have to change the content-type to the one appropriate to PDFs, 
which is discussed elsewhere in this forum
(there are some examples using dynamic PDF generation, which would be 
useful for invoice delivery).

/dps

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to