Forum Moderators: mack

Message Too Old, No Replies

Newby, printing PDF Files

Need to print PDF files on webpage.

         

Toyota_Fury

12:45 am on Feb 4, 2004 (gmt 0)



Hi guys.
I'm new to this stuff so please bear with me.
I work for a small company and do a variation of things around here.
Today I'm trying to modify our website a little bit.
I have to make a print button that will print the PDF file that I want.
I really have no clue what I'm supposed to do.
I don't know too much about HTML either so simple language would be cool.
Thanks for the help guys.

Murray

ram_mac

3:02 pm on Feb 4, 2004 (gmt 0)

10+ Year Member



I don't think there is any way to access the user's printer within any web scripting languages, and definitely not HTML, but a simple link to the .pdf file will cause it to be downloaded by the user.

Many web browsers can view .pdf files with a plugin so you should be able to let them print from there, or they can download it to their machines.

marty12550

4:39 pm on Feb 4, 2004 (gmt 0)

10+ Year Member



Just doing that recently myself for the first time (as well as being a newbie)- I did this and it works

-Make a link to the pdf
-When the user clicks on it, it will automatically open up Adobe Reader (you may want to put a link to that website as a courtesy in case they dont have it)
-From there they can print it themselves.

That was the easist method I found

whoisgregg

11:40 pm on Feb 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Two answers:

1) How to add a "print this page" button to a web site:
Plenty of free scripts for this function, try searching for "print page script" on any search engine. Go for the javascripts.

2) How to add a "print this page" button in a PDF file:
A little more complicated, but it can be done if you have the full version of Acrobat (not Reader). Go to Menu Tools->Advanced Editing->Link Tool. Draw a square on the page. Select "custom link" and hit OK. Click to the Actions tab and select "Execute menu item" from the actions pop-up. Follow the instructions and select the "Print..." menu.
Now just add a graphic or the text "Print this page" where you drew the link.