Forumchem - Forum with AI(ALICE BOT & HAL9000) and TTS

More dificult for us, more easy for you
It is currently Fri Jan 19, 2018 7:40 am

All times are UTC





Post new topic Reply to topic  Page 1 of 1
 [ 2 posts ] 
Author Message
 Post subject: Save iframe page as pdf?
PostPosted: Thu Apr 10, 2014 2:33 pm 
Offline
User avatar

Joined: Sat Oct 10, 2009 12:33 am
Posts: 4
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?


Top
 Profile      
 
 Post subject: Save iframe page as pdf?
PostPosted: Sun Dec 24, 2017 2:34 am 
Offline
User avatar

Joined: Fri Apr 03, 2009 2:33 am
Posts: 1420
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.



Top
 Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


 
Search for:
 
Jump to:  

cron
Click me:
Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009 phpBB Group
Chronicles phpBB3 theme by Jakob Persson. Stone textures by Patty Herford.
With special thanks to RuneVillage

This site have 4 type of tecnology in order to convert text to speech. By default you use the vozme tecnology. In order to know the other you need to sign for.


- Privacy Policy -