I've tried also with this plugin: http://pdfobject.com/
without success. Il giorno venerdì 20 novembre 2015 10:31:27 UTC+1, Gael Princivalle ha scritto: > > Hello all. > > I'm used to embed pdf files like that: > View: > <object data=" > http://www.domain1.com/pdf/file.pdf#toolbar=1&navpanes=0&scrollbar=1&page=1&view=FitH > " > type="application/pdf" > width="100%" > height="100%"> > > Pdf file are uploaded by sftp. > It works well. > > Now for another application files are uploaded in a table. > Model: > db.define_table('memos', > Field('code', type='string', requires=IS_NOT_EMPTY()), > Field('memo_file', 'upload'), > auth.signature) > > View: > <object data="{{=URL('download', > args=grid_memos.view_form.record.memo_file, host=True, > scheme=True)}}#toolbar=1&navpanes=0&scrollbar=1&page=1&view=FitH" > type="application/pdf" > width="100%" > height="100%"> > > Pdf file is not displayed. I've tried with relative or absolute > (host=True, scheme=True) path without success. > Here is the result in the html page: > > <object > data="http://www.domain2.com/download/memos.memo_file.a1c04cabc73895b5.487964726f7665722d48313630312e706466.pdf#toolbar=1&navpanes=0&scrollbar=1&page=1&view=FitH" > type="application/pdf" width="100%" height="100%"> > > Replacing in this new application {{=URL('download',... by a sftp > downloaded file path from my other application > http://www.domain1.com/pdf/file.pdf pdf file is displayed. And it's the > same pdf file. > > Someone knows why? > > Thanks, 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/d/optout.

