Thank you Massimo for web2py itself, and for the ansswer which I need to 
try..!

Grazie

Em terça-feira, 15 de outubro de 2013 09h58min37s UTC-3, Massimo Di Pierro 
escreveu:
>
>
> {{from gluon.contrib.autolinks import expand_one}}
> {{=expand_one(URL('static','document.pdf',scheme=True),{})}}
>
> Will embed the GoogleDoc PDF Viewer.
>
> On Monday, 14 October 2013 19:39:28 UTC-5, Ari Lion BR Sp wrote:
>>
>> I have reallized my mistakes.
>>
>> First of all, I didnt created my 'pdfs' folder under 'static' what I 
>> should have done. 
>> Second, I was using wrong sintaxe request.http_host instead off request.
>> env.http_host
>>
>> Thanks for listening
>>
>>
>>
>> Em segunda-feira, 14 de outubro de 2013 10h41min31s UTC-3, Ari Lion BR Sp 
>> escreveu:
>>>
>>> Hi to all, 
>>>
>>> I do generate PDFs at my my application, and do store it at a folder at 
>>> my aapication, and I want to embed it as a preview at my View page.
>>> I was using <embed> tag in order to do so:
>>>
>>> <embed src="
>>> http://www.mysite.com/local_where_i_saved_my_pdf/pdf_name.pdf<https://www.meuste.com/local_onde_gravei_o_pdf/nome_do_pdf.pdf>
>>> " width="100%" height="375">
>>>
>>> But I need it to be flexible, and I do not succeed to map *src *to 
>>> point to the absolute URL (I guess also due to routing etc). 
>>>
>>> I have also tried the below without success.
>>>
>>> os.path.join(request.http_host, request.folder,
>>> 'local_where_i_saved_my_pdf', 
>>> 'pdf_name<https://www.meuste.com/local_onde_gravei_o_pdf/nome_do_pdf.pdf>
>>> .pdf')
>>>
>>>
>>> What should be the correct, and which alternatives do I have?
>>>
>>> Thanks and regards!
>>>
>>

-- 
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/groups/opt_out.

Reply via email to