簡體   English   中英

如何在 HTML 頁面上顯示 PDF

[英]How to display PDF on the HTML page

我已將我的應用程序從 wicket 1.x 遷移到 wicket 8.x,現在在 iframe 上顯示 PDF 時遇到錯誤。 它在 iframe 上顯示為空白。

我試圖在頁面加載時在 HTML 的 iframe 標記中顯示 PDF ,但它顯示為空白。

Please add below http security header tag in Spring security module xml file to allow Spring security to display the HTML iframe in spring application:

<security:http use-expressions="false">
    <security:headers>
        <security:frame-options disabled="true"></security:frame-options>
    </security:headers>
</security:http>

該解決方案對我有用,現在我的應用程序能夠無任何錯誤地顯示 iFrame 並且能夠在 iFrame 中加載 PDF 文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM