Solved

Java Script and Adobe Acrobat

Posted on 2000-04-18
3
341 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
ID: 2735869
Adjusted points from 100 to 150
0
 

Accepted Solution

by:
art_Dent99 earned 150 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
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…

772 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