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

More dificult for us, more easy for you
It is currently Thu Mar 28, 2024 2:55 pm

All times are UTC





Post new topic Reply to topic  Page 1 of 1
 [ 3 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: 6
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: 1460
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      
 
 Post subject: Save iframe page as pdf?
PostPosted: Sun Feb 07, 2021 3:01 am 
Offline
User avatar

Joined: Thu Apr 02, 2009 6:23 pm
Posts: 1222
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.



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

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 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 -