?
Solved

Java Script and Adobe Acrobat

Posted on 2000-04-18
3
Medium Priority
?
353 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:mikepate
ID: 2735869
Adjusted points from 100 to 150
0
 

Accepted Solution

by:
art_Dent99 earned 300 total points
ID: 2853658
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
ID: 2893270
Can you go further with the print portion of the code?
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

764 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