Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1663 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Article -> .PDF, E-Mail, Printable

Thread title: Article -> .PDF, E-Mail, Printable
Closed Thread    
    Thread tools Search this thread Display Modes  
03-22-2008, 07:43 PM
#1
Jdinh04 is offline Jdinh04
Jdinh04's Avatar
Status: Junior Member
Join date: Feb 2006
Location: East Lansing, MI
Expertise: Project Management
Software:
 
Posts: 54
iTrader: 0 / 0%
 

Jdinh04 is on a distinguished road

  Old  Article -> .PDF, E-Mail, Printable

On a local group website I am working on will have a bunch of articles. I was wondering if anybody could help me with being able to have those buttons where people can convert the article to a .PDF file, e-mail it to another person, or print the article for themselves.

Any help would be greatly appreciated, thanks.

03-23-2008, 06:53 PM
#2
Charlay is offline Charlay
Status: I'm new around here
Join date: Mar 2008
Location:
Expertise:
Software:
 
Posts: 20
iTrader: 0 / 0%
 

Charlay is on a distinguished road

  Old

Emailing it you just need to use phps mail() function or use an OS class, print is a button i've totally forgot i think it's ?print, but you just have to strip everything but text and text formatting. I don't know about pdf theres a php function for it though.

03-29-2008, 06:59 PM
#3
jesselew is offline jesselew
Status: I'm new around here
Join date: Mar 2008
Location:
Expertise:
Software:
 
Posts: 16
iTrader: 0 / 0%
 

jesselew is on a distinguished road

Send a message via Yahoo to jesselew

  Old

Here is print found at: http://www.w3schools.com/htmldom/met_win_print.asp

Code:
<html>
<head>
<script type="text/javascript">
function printpage()
  {
  window.print()
  }
</script>
</head>
<body>

<input type="button" value="Print this page"
onclick="printpage()" />

</body>
</html>
Just and this to the page you want to be able to print.

Now, to the PDF question. If you just want to give the option to view or download the doc. in PDF format all you will need to do is link to a PDF of the doc. You will need to create the doc. and link to it. It is not a good idea to generate a new PDF on the server every time some wants to view in that format. Save yourself hassle and just create a link to the PDF.


Now, to email: You will need to build a script and form. These are not hard or easy tasks. Take a look on Google to find a "how-to" or have a look around the php section here. You could alway get someone to do it here in the market place.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed