I am displaying the number of records using HRef along with Title, all my records are coming from the WordPress connector which are types of PDFs and WebPages. I want to have a my PDF file open in iFrame instead of downloading it. Currently when I am clicking on Href, It is asked me to start downloading.I need this using ASP.NET. I don't have even any control from WordPress connector. It is simple third party.
Simple thing is I want to open a PDF file in iFrame instead of downloading. I want this using JQuery, so when user clicks it will be loaded into the iFrame.
Harshal
Related
My website contains a iframe which allows the user to navigate the web. If the user clicks a download button on any website I would like it to download in a folder located on the servers itself. So if the user presses download on a image, the image is downloaded onto a folder on the server instead of the computer. Is this possible? I have no idea on how to go about doing this.
You seem to need to display a download button on any website...
You cannot modify all internet websites with your code.
The only way to go this is :
to create a browser extension, like this one : https://chrome.google.com/webstore/detail/image-downloader/cnpniohnfphhjihaiiggeabnkjhpaldj
This extension will be able to interact with any website and do what you want.
or (more simple to code) execute a Javascript of your own that will make floating a download button on any image of any website.
You can do this with this Chrome extension for example : https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
You can also use a "download" button over the iframe that launch a curl Linux command that will download the iframe page and all the images, files etc...
I have a landing page on which there is a form which is filled by user and then it goes to a thank you page (which is another page). On thank you page I simply want to prompt the user for saving a pdf as the thank you page loads. Please note I want the file to be saved/downloaded and not opened on the same tab or another tab in the browser. I have tried multiple solutions but they all seem to open the pdf in the browser itself and not download it. Some of the methods I have tried are meta tag download, page redirect download, iframe download but they all open the pdf in browser itself and not download it. I just want a simple solution for downloading the file and not opening it in the browser. Also the pdf should download automatically without clicking any link or button.
The document.ready event of the thank you page should trigger a local script that runs a server script to download the PDF. Be sure to set the headers as described above. If you try to link directly to the PDF, it'll try to load in the browser.
Alternatively, you could create the PDF in a directory that is already set to only download files by setting the .htaccess file for that directory.
I had project with java that created the pdf from the back-end and saved that pdf for while so the user could download that file within a frame of time, so embedding or sending that file was easy because it have a physical copy in the server, now for this project the pdf is generated with the dynamic html content the user chooses with jsPDF, but this file the user only can save it directly to his/her computer.
There is a way to show this pdf generated on the fly embeded in a html page like a modal/div or a tooltip (for a thumbnail preview)?
It would be better if there is mobile friendly solution.
Since mobiles have some issues with iframe i'm not considering that as an option.
I have a website, but I need a button which I want to print a specific .pdf file from my webpage database.
As an example, this site
has a print button, which gives you option to print some pdf files
Any idea how can I do that?
I've tried this one, but it's not working:
<a href="../Documents/ScrittoGraffito/Scritto_Customers/Nicolaides_Optical/Nicolaides_webpage/Shop1_Banner.pdf"
onclick="window.print()"/><p class="test">link</p></a>
That code will tell the browser to open the print dialog for the current page.
If you want to force the browser to print the linked pdf then that is not possible, as it will be completely controlled by the application or plugin that handles pdf documents.
EDIT;
Apparently it is possible, but you have to make use of a pdf toolkit.
I am in the process of making a bookmarklet for my website.
When clicked i need it to do either one of two things.
Retreive all images that are on the page then show them in the bookmarklet.
or
Once opened the next image that is clicked on on the page is loaded into the bookmarklet.
I think the part that i am struggling with is that i cant get the bookmarklet to interact with the page at all, it's almost as if it doesn't know the page is there if that makes sense?
P.s i am using google chrome to test this and i am loading it as a extension.