You need to Register for free and Login to post a message in the forum.

Forum

Subject: Displaying a PDF file in DNN5
Prev Next
You are not authorized to post a reply.

Author Messages
Bart A Zoni
DNN Creative Magazine Subscriber

Posts:10

18 Dec 2009 11:17 PM  
I wish to display a PDF file in DNN5. What is the best practice? Create a page that displays a file and target a new window? (This doesn't allow for the navagation to be available to the site visitor. S/he needs to know to close or switch windows to get back to the site.) or Use and IFrame? (I am having trouble with sizing the IFrame window, using this method)
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5352


19 Dec 2009 4:20 AM  
I have seen modules that will display a PDF file inside of a DotNetNuke page. My normal practice is to set links to PDF files and set the link to open in a new tab or window.

Joe Craig
DNN Creative Support
Subscribe to the website
Bart A Zoni
DNN Creative Magazine Subscriber

Posts:10

20 Dec 2009 5:58 PM  
Thanks Joe. I suspect that is what I will be doing going forward.
Do you know if the IFrame has any practical purpose and do you know of anyone who usese it successfully?
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5352


20 Dec 2009 6:18 PM  
The stated purpose of the IFrame module is:

"The IFrame is a browser feature which allows you to display content from another web site within a frame. Within the content of DotNetNuke, the IFrame module allows the embedding of an internal/external URL within the module"

Personally, I tend to view the IFrame modules as a module of last resort.  I think of using it when almost nothing else will work.

In the case of PDF files, there are better alternatives.

Joe Craig
DNN Creative Support
Subscribe to the website
Bart A Zoni
DNN Creative Magazine Subscriber

Posts:10

22 Dec 2009 5:10 PM  
Thanks Joe. I will play around with IFrame, displaying pages from another website to see how it reacts, but it sounds like I am going to conclude there are better ways to handle things than using IFrame. Bart
Allen Foster
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:3

28 Jan 2010 10:48 AM  
Joe,
Do you happen to remember the name(s) of the modules that can display a PDF w/i a DNN page?
I searched Snowcovered but didn't see any.
Thanks!
Bart A Zoni
DNN Creative Magazine Subscriber

Posts:10

28 Jan 2010 3:25 PM  
Allen I played around with IFrame to display a PDF and got it to work pretty well. It was a matter of setting the correct page size to match the rest of the website page widths. It does have one problem. If a navagation menu dropdown contains many sub-menu items, enough that the list of sub-menu items would extend far enough down to need to overlap the top of acurrently displayed PDF, the list of sub-items is cut short (giving an appearance that the sub-menu went behind the PDF). I found this to be unacceptable and will not use IFrame for my solution, though otherwise it looks and works really great. I may consider using this if I know I have a site that will only contain 3 or 4 sub-menu items maximum underneath any of the navigation buttons. If I did use this, I would make a template of the one that I created, so that I could easily create pages which contain PDFs, as all I would have to change was the url pointing to the .pdf file. Anyhow, I went with the solution of just displaying the PDF in a new Window or Tab (and not containing navigation, requiring the site visitor to know that he has to switch windows or close the window with the PDF File to get back to my site). A second reason I went with this decision was that my client has a requirement to be able to periodically add new PDF files to the site. this allows my client to add additional PDF files via just adding another link and uploading the file. The client is not of the technical level to add new pages, which would be required if I use the IFrame. However, I would be very interested to hear of the names of the other modules that can display a PDF within a DNN page if Joe can remember.
gbrown
DNN Creative Magazine Subscriber
Nuke Ace
Nuke Ace
Posts:43

28 Jan 2010 7:36 PM  
There is a new module on Snowcovered that works with Scribd.com. This allows you to embed their excellent IPaper module into your site and show pdf, Word, Excel, Powerpoint, etc. You may even be able to take the code available on Scribd and put in into a text/html module and do this for free too.

Greg
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5352


29 Jan 2010 8:54 PM  
I looked around, but I can't find a module that displays PDF files directly.

Joe Craig
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Displaying a PDF file in DNN5



ActiveForums 3.7

Latest Forum Posts

RE: Creating Portals before setting the host by cyborama
Hello Joe, Just got done speaking with my hosting company in reguards to A records and host head...
RE: PayFlow Link by johnmurphy
Hi murphydolores, I am using iHost. iHost.Net supports PayFlow Link and its easy to configure. T...
RE: Background Music by cyborama
Hello Kyle I can't think of any modules that could do this though that doesn't mean they are not out...
RE: Creating Portals before setting the host by cyborama
Hello Joe thanks for the quick reply, If you read down my thread fully you will see I had already...
RE: Employee Absent Indicator by jncraig
I think that the biggest here is to define the workflow and to figure out who/how will maintain the ...
RE: Run exe/dll from DNN? by ollivogt
Thank you. I have a look at it....RegardsOliver
RE: DotNetNuke 5.3.0 Released by jncraig
Whoops! From Joe Brinkman: "With any software product you will occasionally have a release tha...
RE: Creating Portals before setting the host by jncraig
Whoops! Didn't quite finish. DNS, through A Records and other records is used to convert a domai...
RE: Creating Portals before setting the host by jncraig
NO! Don't delete and start over. "A Records" are part of DNS. Host Headers are part of IIS Co...
RE: Creating Portals before setting the host by cyborama
By the way Lee or Joe didn't try this yet but do you think it would be wise (should someone else run...
RE: Creating Portals before setting the host by cyborama
Ok Lee, Joe, and others reading this thread, I just had success. Here is what happened. I thoug...
RE: Creating Portals before setting the host by cyborama
Hello Lee, No Success yet I think I might need to delete my portal and recreate it. I created th...
RE: Auto create pages and content by jncraig
Are you using the DotNetNuke menu or another one?
RE: Missing Edit & Add Function on Modules to Entire Site by jncraig
Glad it's working!
RE: Firefox SWF file by jncraig
I recommend that you use the free DigFlash module from dignuke.com. I've found it to be a very reli...
Firefox SWF file by ce221
on my dnn site it have a text/html that has the following attached code this displays fine in IE but...
RE: Missing Edit & Add Function on Modules to Entire Site by jacksonsc56
arrrrggghhhh for goodness sake, I was in View mode!. After a year working on numerous B2B DNN sit...
RE: Missing Edit & Add Function on Modules to Entire Site by jacksonsc56
Strangely enough the Admin account is displaying the modules settings menu. To confirm its the menu ...
.MainMenu_MenuItemActive (Active Solpart menu item not working) by SixfootStudio
Hi Guys, Could someone please take a look at this SolPart menu for me and tell me why it is that ...
Missing Edit & Add Function on Modules to Entire Site by jacksonsc56
Just logged into my DNN site as host and noticed I can no longer edit modules or access the settings...
DotNetNuke Modules
RSS Feeds