How to embed a document in HTML page?

前端 未结 3 2158
你的背包
你的背包 2020-11-30 09:19

We would like to show the document (e.g. pptx, xlsx, docx, pdf, html) in a html page after retrieving it fro

3条回答
  •  北海茫月
    2020-11-30 09:52

    Non-html content apart from images needs to be retrieved using an object, embed or iframe tag

    1. iframe:
    2. object/embed:

    somepage.pdf could be somepage.jsp?filename=somepage&mimetype=application/pdf

    Here is an interesting link How to Embed Microsoft Office or PDF Documents in Web Pages

    and here is a stackoverflow search

提交回复
热议问题