I think you need some JavaScript to grab the URL of the iframe, and then some AJAX to send it to a PHP script, which will then request it, and then convert the page to a valid PDF file. The AJAX will retrieve the PDF file, and prompt the user with a download.
Above can easily be done like: $lines = file(http://www.example.com/);
An alternative to using JavaScript, could be to simply feed the script with the URL, using a normal link, and a URL parameter. But this assumes you know the URL of the iframe.
But thi is really complicated stuff, not something i would waste my time figuring out, unles it was an really important feature, used by many people on my site. I would simply show them a plain text or HTML file of the content, which require much less work to implement.
I would recommend you look at some HTML to PDF script in PHP, (or whatever language that your server supports).
Also keep in mind, that a lot of user tend to get annoyed by PDF files. Its a proprietary format, which requires additional software from adobe to be read.
|