[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Java Script and Adobe Acrobat

Posted on 2000-04-18
3
Medium Priority
?
357 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

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
Suggested Courses

656 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