How to Display pdf in Modal Popup
Last Post 11/30/2015 8:25 AM by Joseph Craig. 1 Replies.
Author Messages
Donald
Nuke Ace
Nuke Ace
Posts:53


--
11/29/2015 9:06 PM
    Hi all

    I want to display a pdf document inside a modal popup. Opening the pdf by linking it lets the user inadvertently leave the web site. However, in a modal, clicking the X in the corner of the popup keeps the user on the site.

    Note: I already have page and module content displaying in popups. That's not the issue. The problem is getting a pdf to do the same. Are there any alternatives short of turning the pdf into a jpg or png? This is not a good choice because it would require constant attention as the pdf documents change frequently.

    Thanks for your thoughts.

    DNN7.04.x

    -DL
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/30/2015 8:25 AM
    You could display the PDF file in an iframe (using the DNN Iframe module at https://github.com/DNNCommunity/DNN.IFrame). Pop it up the way you are popping up modules.

    Joe Craig, Patapsco Research Group
    Complete DNN Support


    ---