Solved

Java Script and Adobe Acrobat

Posted on 2000-04-18
3
337 Views
Last Modified: 2013-12-16
I am building a form in Adobe Acrobat and I would like a button on the form that will print a PDF that is NOT being viewed. I know Adobe allows some Java script behind the fields but I do not know how to write script to print the current form and especially a form not being viewed.  The form in question is located on a web server and is accessible via http:

Example:  I have myForm.pdf open.  It contains 3 checkboxes for form1.pdf, form2.pdf, and form3.pdf.  I click checkboxes by each of these forms, then click a button to cause each of these forms to be printed.

Any ideas?
0
Comment
Question by:mikepate
  • 2
3 Comments
 

Author Comment

by:mikepate
Comment Utility
Adjusted points from 100 to 150
0
 

Accepted Solution

by:
art_Dent99 earned 150 total points
Comment Utility
I've found the AcroJS.pdf file that ships with Acrobat very helpful (I'm not good a scripting either!)

on your 'print' button, you can use javascript to check the value of each checkbox field, and if 'on', print the .pdf.

(I don't have the AcroJS in front of me, so I cannot be more specific at this time)

var check1 = this.getField(checkbox1)
var check2 = this.getField(checkbox2)
var check3 = this.getField(checkbox3)

{
if
check1.value == 1 then print

not correct but you get the idea...
0
 

Author Comment

by:mikepate
Comment Utility
Can you go further with the print portion of the code?
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now