Url for use in an Iframe
Moderators: pe7er, General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
- sv9779
- Joomla! Apprentice
- Posts: 42
- Joined: Mon Oct 28, 2013 6:56 pm
Url for use in an Iframe
For the life of me I can't remember how get the URL for use in an Iframe. I have uploaded a couple of PDF files to my Cpanel file manager. I created a new folder for them so they would be easy to find. I'm using Joomla 3.10 and Helix Ultimate. When I create my module I am using Wrapper. I can take any website off the internet and plug it in to the URL slot and I get an Iframe with that webpage. I just can figure out how to direct it to the PDFs that are stored in my file manger.
- Pavel-ww
- Joomla! Ace
- Posts: 1635
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Url for use in an Iframe
Hi. If you want to do this without additional plugins, then you need to use a link through Google Docs Viewer.sv9779 wrote: ↑Sat Jan 15, 2022 1:18 amFor the life of me I can't remember how get the URL for use in an Iframe. I have uploaded a couple of PDF files to my Cpanel file manager. I created a new folder for them so they would be easy to find. I'm using Joomla 3.10 and Helix Ultimate. When I create my module I am using Wrapper. I can take any website off the internet and plug it in to the URL slot and I get an Iframe with that webpage. I just can figure out how to direct it to the PDFs that are stored in my file manger.
Something like this.
Code: Select all
<iframe src="https://docs.google.com/viewer?url=http://your_domain.com/path_to_pdf/your-pdf.pdf&embedded=true" style="width: 600px; height: 600px;" frameborder="0">Your browser does not support frames</iframe>
- sv9779
- Joomla! Apprentice
- Posts: 42
- Joined: Mon Oct 28, 2013 6:56 pm
Re: Url for use in an Iframe
Thanks for the reply,
The problem is I can't figure out what the path is to my PDF. I used to just use the wrapper in the module, but I can't remember how I used to find the path. Is there a plugin that you can recommend that might help me. Or a simple way to find the path. I dropped the PDF into my File Manager. It shows
"public_html/PDF Files" then I could add the "/my pdf file name"
Just can't figure out how to get there
The problem is I can't figure out what the path is to my PDF. I used to just use the wrapper in the module, but I can't remember how I used to find the path. Is there a plugin that you can recommend that might help me. Or a simple way to find the path. I dropped the PDF into my File Manager. It shows
"public_html/PDF Files" then I could add the "/my pdf file name"
Just can't figure out how to get there
- Per Yngve Berg
- Joomla! Master
- Posts: 30930
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Url for use in an Iframe
"public_html" is your web root. All path goes from there.
- sv9779
- Joomla! Apprentice
- Posts: 42
- Joined: Mon Oct 28, 2013 6:56 pm
Re: Url for use in an Iframe
I finally figured it out, I had the path wrong. I found that the path was
"https://my_site.com/images/my_pdf"
I was trying to use public_html path and couldn't make it work. I also found if I put my PDFs in the images folder it made it easier. So I created a sub folder for just the PDFs and it's working fine.
Thanks for the help
Now I just have to figure out how to get rid of the menu bar on top of the PDF so it doesn't show the "download, print, rotate" options
"https://my_site.com/images/my_pdf"
I was trying to use public_html path and couldn't make it work. I also found if I put my PDFs in the images folder it made it easier. So I created a sub folder for just the PDFs and it's working fine.
Thanks for the help
Now I just have to figure out how to get rid of the menu bar on top of the PDF so it doesn't show the "download, print, rotate" options
- AMurray
- Joomla! Exemplar
- Posts: 9739
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: Url for use in an Iframe
The options you want to remove I would suggest are a part of the PDF reader software (e.g. Adobe), or the browser's internal function to handle PDF files and would be an end-user preference.
I don't think it's something you could easily manipulate to work the same for all users, as they would tend to use different browsers, different PDF readers and some I would have no doubt would like to be able to download or print the documents.
I don't think it's something you could easily manipulate to work the same for all users, as they would tend to use different browsers, different PDF readers and some I would have no doubt would like to be able to download or print the documents.
Regards - A Murray
General Support Moderator
General Support Moderator
- sv9779
- Joomla! Apprentice
- Posts: 42
- Joined: Mon Oct 28, 2013 6:56 pm
Re: Url for use in an Iframe
I think you're right. I haven't been able to find any way to do it. I did find program called PDF Candy that looks like it could manipulate the PDFs and limit the things a an end user can do. But not sure I want to to pay a hundred bucks for the program.AMurray wrote: ↑Sat Jan 15, 2022 11:41 pmThe options you want to remove I would suggest are a part of the PDF reader software (e.g. Adobe), or the browser's internal function to handle PDF files and would be an end-user preference.
I don't think it's something you could easily manipulate to work the same for all users, as they would tend to use different browsers, different PDF readers and some I would have no doubt would like to be able to download or print the documents.