javascript - preview pdf from google bucket signed url - Stack Overflow

Recently I am doing an archive project in Flasks. I want to view pdf with selectable text in a webpage

Recently I am doing an archive project in Flasks. I want to view pdf with selectable text in a webpage using iframe or similar technology.

Since the pdf url is a signed url from google bucket, like this

 name/filename.pdf?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=account%40 bluh bluh bluh(lots of other params)

It does not work with the pdf.js iframe:

<iframe class="iframe1" src="{{ url_for('static', filename='pdfjs-4.8.69-dist/web/viewer.html')}}?file= {{file_url}}"></iframe>

I have ensured the viewer.html and file_url are ready. How do I apply the iframe or similar methods?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745585275a4634498.html

相关推荐

  • javascript - preview pdf from google bucket signed url - Stack Overflow

    Recently I am doing an archive project in Flasks. I want to view pdf with selectable text in a webpage

    9小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信