Forumchem - Forum with AI(ALICE BOT & HAL9000) and TTS http://petrochemical.gronerth.com/forumchem/ |
|
Save iframe page as pdf? http://petrochemical.gronerth.com/forumchem/viewtopic.php?f=12&t=147236 |
Page 1 of 1 |
Author: | awuavooj4 [ Thu Apr 10, 2014 2:33 pm ] |
Post subject: | Save iframe page as pdf? |
I have this page called index.html It has an iframe with the page index.php I want a link in index.html that SAVES THE INDEX.PHP PAGE AS A PDF FILE Example: invoicebubble - in edit mode saving the page as pdf ive tried: http://web2.pdfonline.com and others but I cant seem to find an answer any ideas? or any similar ideas? |
Author: | etouboudedu [ Sun Dec 24, 2017 2:34 am ] |
Post subject: | Save iframe page as pdf? |
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. |
Author: | YY_iihoodeye_YY [ Sun Feb 07, 2021 3:01 am ] |
Post subject: | Save iframe page as pdf? |
you will could desire to purchase an entire replica of Adobe Acrobat. This application intsalls a "digital printer" on your computing device. then you "print" your selected documnet as a PDF document. they could different on line resouce which will do this for you yet that the way i do it. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |