How to add Javascript 'print' (etc.) buttons to PDF web form?

I'm developing an application that's supposed to have 'print' and 'email' buttons on the PDF form. I see the JavaScript 'print'
reference (and postings here), but how do I include both in the web page? I can see the PDF (on supported browsers) if I access
it as a URL by itself, but I tried inserting it into a page with <IMG> and <EMBED> tags with no results.

I don't have control of the PDF content, so the button graphic will have to overlay the PDF or be very near it. Obviously this is
a Standard Thing to Do, but I can't find an example in my tech library nor via Googling.

Thanks in advance for any guidance whatsoever!
LVL 2
markmcwigginsAsked:
Who is Participating?
 
Karl Heinz KremerCommented:
The Acrobat 6 or 7 Professional Help document does contain information about how to create form submission buttons. For printing, you also need the "Acrobat JavaScript Scripting Reference" document, which you can download from Adobe's web site: http://partners.adobe.com/public/developer/pdf/topic_js.html
0
 
Karl Heinz KremerCommented:
This is not a standard thing to do...

You have to add these buttons to the PDF file if you want to make use of Acrobat's form submission and printing capabilities. You cannot submit a form from outside of Acrobat (e.g. with a HTML button), you may be able to print the file, by using DDE to remote control Acrobat (I'm not saying that it will work however).

Is the PDF file you are dealing with a PDF form (e.g. does it have form fields)? Is the file protected agains changes? If not, you can add the buttons to the file.
0
 
markmcwigginsAuthor Commented:
So when I see these things they are customized PDFs or just frames?

I guess I will just do this with a small frame at the top or bottom. Thanks.
0
 
Karl Heinz KremerCommented:
If you want to call these files "customized PDFs", then yes. They are PDF forms, and a form can contain a number of things: edit fields, list boxes, check boxes, and buttons. When you ceate a button in a PDF file, you can define what the form will do when the button is pressed (e.g. run a JavaScript, submit the form, reset the form, ...).
0
 
markmcwigginsAuthor Commented:
OK ... where's the best source of PDF documentation on doing this button programming?

The frame solution I mention above might work but is more problematical in supporting
multiple OSes, etc., etc.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.