Solved

Java Script and Adobe Acrobat

Posted on 2000-04-18
3
343 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to print dynamic Google map and directions? 1 23
Not allowed to load local recource. 4 34
Asp in script 6 35
What if i make webbased alternative for MS Access 5 67
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…

789 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