ProForm PFTL71505.3 User Manual

Browse online or download User Manual for Treadmills ProForm PFTL71505.3. Acrobat JavaScript Scripting Guide [en]

  • Download
  • Add to my manuals
  • Print
  • Page
    / 90
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
ADOBE SYSTEMS INCORPORATED
Corporate Headquarters
345 Park Avenue
San Jose, CA 95110-2704
(408) 536-6000
http://partners.adobe.com
bbc
May 2003
Acrobat JavaScript
Scripting Guide
Te chnical Note #5430
Versi on: Acrobat 6.0
Page view 0
1 2 3 4 5 6 ... 89 90

Summary of Contents

Page 1 - Scripting Guide

ADOBE SYSTEMS INCORPORATED Corporate Headquarters 345 Park AvenueSan Jose, CA 95110-2704(408) 536-6000http://partners.adobe.com bbc May 2003 Acrobat

Page 2

Preface For More Information 10 Acrobat JavaScript Scripting Guide For More Information This guide refers to the following sources for additional inf

Page 3 - Contents

Acrobat JavaScript Scripting Guide 11 1 Introduction to Acrobat JavaScript Introduction This chapter introduces Adobe Acrobat JavaScript. The JavaScr

Page 4

Introduction to Acrobat JavaScriptWhat Is Acrobat JavaScript?112 Acrobat JavaScript Scripting GuidePDF document is referred to as an eForm. eForms are

Page 5

Acrobat JavaScript Scripting Guide 13Introduction to Acrobat JavaScriptWhat Can You Do with Acrobat JavaScript?1● HTML JavaScript is able to manipulat

Page 6

Introduction to Acrobat JavaScriptWhat Can You Do with Acrobat JavaScript?114 Acrobat JavaScript Scripting Guide● Dynamically modifying a document’s a

Page 7

Acrobat JavaScript Scripting Guide 15Introduction to Acrobat JavaScriptAcrobat JavaScript Object Overview1ASN JavaScript training module on “Setting u

Page 8 - How To Use This Guide

Introduction to Acrobat JavaScriptAcrobat JavaScript Object Overview116 Acrobat JavaScript Scripting GuideFIGURE 1.1 Doc Object Containment HierarchyF

Page 9

Acrobat JavaScript Scripting Guide 17Introduction to Acrobat JavaScriptAcrobat JavaScript Object Overview1see the ASN JavaScript training module on “L

Page 10 - For More Information

Introduction to Acrobat JavaScriptAcrobat JavaScript Object Overview118 Acrobat JavaScript Scripting Guide

Page 11 - Overview

Acrobat JavaScript Scripting Guide 192Acrobat JavaScript Editor and Debugger ConsoleIntroduction to the JavaScript Editor and Debugger ConsoleAcrobat

Page 12 - What Is Acrobat JavaScript?

Copyright 2003 Adobe Systems Incorporated. All rights reserved. NOTICE: All information contained herein is the property of Adobe Systems Incorporate

Page 13

Acrobat JavaScript Editor and Debugger ConsoleJavaScript Console220 Acrobat JavaScript Scripting GuideJavaScript ConsoleThe Acrobat JavaScript console

Page 14

Acrobat JavaScript Scripting Guide 21Acrobat JavaScript Editor and Debugger ConsoleUsing a JavaScript Editor2● To move the cursor four spaces to the l

Page 15 - The Doc Object

Acrobat JavaScript Editor and Debugger ConsoleUsing a JavaScript Editor222 Acrobat JavaScript Scripting Guide5. Click Add to open the JavaScript edito

Page 16

Acrobat JavaScript Scripting Guide 23Acrobat JavaScript Editor and Debugger ConsoleSpecifying the Default JavaScript Editor2Specifying the Default Jav

Page 17 - Database Objects

Acrobat JavaScript Editor and Debugger ConsoleUsing the Built-in Acrobat JavaScript Editor224 Acrobat JavaScript Scripting Guide4. Click OK to close t

Page 18

Acrobat JavaScript Scripting Guide 25Acrobat JavaScript Editor and Debugger ConsoleUsing an External Editor2Edit > Preferences > JavaScript dial

Page 19 - Debugger Console

Acrobat JavaScript Editor and Debugger ConsoleUsing an External Editor226 Acrobat JavaScript Scripting GuideWhen Acrobat needs to open the JavaScript

Page 20 - JavaScript Console

Acrobat JavaScript Scripting Guide 27Acrobat JavaScript Editor and Debugger ConsoleExercise: Working with the JavaScript Console2Saving and Closing a

Page 21 - Using a JavaScript Editor

Acrobat JavaScript Editor and Debugger ConsoleExercise: Working with the JavaScript Console228 Acrobat JavaScript Scripting GuideEnabling the Interact

Page 22

Acrobat JavaScript Scripting Guide 29Acrobat JavaScript Editor and Debugger ConsoleExercise: Working with the JavaScript Console23. Click the Clear bu

Page 23

Acrobat JavaScript Scripting Guide 3 Contents Contents Chapter Preface . . . . . . . . . . . . . . . . . . . . . . . . .

Page 24 - Using an External Editor

Acrobat JavaScript Editor and Debugger ConsoleExercise: Working with the JavaScript Console230 Acrobat JavaScript Scripting GuideFIGURE 2.6 Evaluating

Page 25

Acrobat JavaScript Scripting Guide 31Acrobat JavaScript Editor and Debugger ConsoleExercise: Working with the JavaScript Console2FIGURE 2.7 Evaluating

Page 26

Acrobat JavaScript Editor and Debugger ConsoleExercise: Working with the JavaScript Console232 Acrobat JavaScript Scripting Guide

Page 27 - Enabling JavaScript

Acrobat JavaScript Scripting Guide 333Acrobat JavaScript DebuggerIntroduction to the Acrobat JavaScript DebuggerThe Acrobat JavaScript Debugger allows

Page 28

Acrobat JavaScript DebuggerEnabling the Acrobat JavaScript Debugger334 Acrobat JavaScript Scripting GuideEnabling the Acrobat JavaScript Debugger Befo

Page 29

Acrobat JavaScript Scripting Guide 35Acrobat JavaScript DebuggerEnabling the Acrobat JavaScript Debugger3Figure 3.1 shows typical JavaScript debugger

Page 30 - myNumber);

Acrobat JavaScript DebuggerDebugger Dialog Window336 Acrobat JavaScript Scripting GuideDebugger Dialog WindowYou can open the debugger dialog window w

Page 31

Acrobat JavaScript Scripting Guide 37Acrobat JavaScript DebuggerDebugger Buttons3FIGURE 3.2 Debugger dialogDebugger ButtonsThe Acrobat JavaScript Debu

Page 32

Acrobat JavaScript DebuggerDebugger Buttons338 Acrobat JavaScript Scripting GuideFIGURE 3.3 Debugger buttonsResume ExecutionWhen the script is stopped

Page 33 - Acrobat JavaScript Debugger

Acrobat JavaScript Scripting Guide 39Acrobat JavaScript DebuggerDebugger Buttons3QuitThe Quit button terminates the debugging session and closes the d

Page 34

Contents 4 Acrobat JavaScript Scripting Guide Using the Built-in Acrobat JavaScript Editor . . . . . . . . . . . . . . . . . . . .

Page 35

Acrobat JavaScript DebuggerDebugger Scripts Window340 Acrobat JavaScript Scripting GuideDebugger Scripts WindowScripts are automatically collected fro

Page 36 - Debugger Dialog Window

Acrobat JavaScript Scripting Guide 41Acrobat JavaScript DebuggerCall Stack List3Form Editing mode — To switch to form editing mode, you need to access

Page 37 - Debugger Buttons

Acrobat JavaScript DebuggerInspect Details Window342 Acrobat JavaScript Scripting Guideentry represents a function call, or frame, in the stack. The t

Page 38 - Interrupt

Acrobat JavaScript Scripting Guide 43Acrobat JavaScript DebuggerInspect Details Window3FIGURE 3.7 Inspect details window button controlsInspecting Var

Page 39

Acrobat JavaScript DebuggerInspect Details Window344 Acrobat JavaScript Scripting GuideWatchesThe Watches list enables you to customize your inspectio

Page 40 - Debugger Scripts Window

Acrobat JavaScript Scripting Guide 45Acrobat JavaScript DebuggerInspect Details Window3display an alert telling you that you cannot set a breakpoint o

Page 41 - Call Stack List

Acrobat JavaScript DebuggerStarting the Debugger346 Acrobat JavaScript Scripting GuideStarting the DebuggerYou can start the debugger in four ways. Tw

Page 42 - Inspect Details Window

Acrobat JavaScript Scripting Guide 47Acrobat JavaScript DebuggerStepping Through Your Code3Stepping Through Your CodeThe Acrobat JavaScript Debugger a

Page 43 - Inspecting Variables

Acrobat JavaScript DebuggerExercise: Calculator348 Acrobat JavaScript Scripting Guide– Step Into– Step Out–QuitCalculatorCalc.pdf uses document-level

Page 44 - Breakpoints

Acrobat JavaScript Scripting Guide 49Acrobat JavaScript DebuggerExercise: Calculator3causes a subsequent value entered (to the right of the point) to

Page 45

Acrobat JavaScript Scripting Guide 5 Contents Exercise: Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 46 - Starting the Debugger

Acrobat JavaScript DebuggerExercise: Calculator350 Acrobat JavaScript Scripting Guide5. Summarize your findings.From the above, note that:– Button val

Page 47 - Exercise: Calculator

Acrobat JavaScript Scripting Guide 51Acrobat JavaScript DebuggerExercise: Calculator3FIGURE 3.10 The value of accum is not updatedAnother runtime erro

Page 48 - Calculator

Acrobat JavaScript DebuggerKnown Issues352 Acrobat JavaScript Scripting GuideFIGURE 3.11 Second Runtime ErrorKnown IssuesDue to some limitations in th

Page 49 - Getting Started

Acrobat JavaScript Scripting Guide 53Acrobat JavaScript DebuggerSummary3The events DocWillPrint and DocDidPrint cannot be debugged because the printin

Page 50 - Debugging a runtime error

Acrobat JavaScript DebuggerSummary354 Acrobat JavaScript Scripting Guide

Page 51 - Another runtime error

Acrobat JavaScript Scripting Guide 554Using Acrobat JavaScript in FormsCreating simple JavaScriptsThere are a number of simple JavaScripts you can int

Page 52 - Known Issues

Using Acrobat JavaScript in FormsCreating simple JavaScripts456 Acrobat JavaScript Scripting Guide4. Delete the automatically generated text, defining

Page 53

Acrobat JavaScript Scripting Guide 57Using Acrobat JavaScript in FormsCreating simple JavaScripts412.•Click Close in the Text Field Properties dialog.

Page 54

Using Acrobat JavaScript in FormsCreating simple JavaScripts458 Acrobat JavaScript Scripting Guide3. Click the Actions tab, choose Mouse Up, and then

Page 55 - Creating simple JavaScripts

Acrobat JavaScript Scripting Guide 59Using Acrobat JavaScript in FormsCreating simple JavaScripts45. To mail the PDF document to the specified e-mail

Page 56 - ValueA - ValueB

Contents 6 Acrobat JavaScript Scripting Guide Restricting Permissions . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 57

Using Acrobat JavaScript in FormsWorking with JavaScript actions460 Acrobat JavaScript Scripting Guide–To keep the GreaterThan field read only until a

Page 58

Acrobat JavaScript Scripting Guide 61Using Acrobat JavaScript in FormsWorking with document level JavaScript actions42. Type the name of the script in

Page 59

Using Acrobat JavaScript in FormsCreating form fields programmatically462 Acrobat JavaScript Scripting Guide● Document Did Save runs the JavaScript af

Page 60

Acrobat JavaScript Scripting Guide 63Using Acrobat JavaScript in FormsCreating form fields programmatically4There are seven types of form fields, desc

Page 61

Using Acrobat JavaScript in FormsCreating form fields programmatically464 Acrobat JavaScript Scripting GuideAll field types have the same properties a

Page 62

Acrobat JavaScript Scripting Guide 65Using Acrobat JavaScript in FormsCreating form fields programmatically4Appearance TabThe Appearance tab allows yo

Page 63 - ● Combo Box

Using Acrobat JavaScript in FormsCreating form fields programmatically466 Acrobat JavaScript Scripting GuideTable Notes. ● For “Select Icon” under “Bu

Page 64

Acrobat JavaScript Scripting Guide 67Using Acrobat JavaScript in FormsCreating form fields programmatically4Table Notes. ● Check box is checked by def

Page 65

Using Acrobat JavaScript in FormsCreating form fields programmatically468 Acrobat JavaScript Scripting GuideTable Notes. ● Item and Export Value: Afte

Page 66 - Check Box

Acrobat JavaScript Scripting Guide 69Using Acrobat JavaScript in FormsCreating form fields programmatically4Table Notes. ● Number: The example in the

Page 67 - Combo Box

Acrobat JavaScript Scripting Guide 7 Preface Introduction Welcome to the Adobe Acrobat JavaScript Scripting Guide . This scripting guide is designed

Page 68

Using Acrobat JavaScript in FormsCreating form fields programmatically470 Acrobat JavaScript Scripting GuideCalculate TabThe action of the combo box c

Page 69

Acrobat JavaScript Scripting Guide 71Using Acrobat JavaScript in FormsCreating form fields programmatically4Options TabThe Options Tab show the same s

Page 70 - List Box

Using Acrobat JavaScript in FormsCreating form fields programmatically472 Acrobat JavaScript Scripting GuideAppearance TabThe Appearance tab shows the

Page 71 - Radio Button

Acrobat JavaScript Scripting Guide 73Using Acrobat JavaScript in FormsCreating form fields programmatically4An Acrobat 5 ExampleHere is a complete exa

Page 72 - Signature

Using Acrobat JavaScript in FormsCreating form fields programmatically474 Acrobat JavaScript Scripting GuideActions TabThe Actions tab shows the same

Page 73

Acrobat JavaScript Scripting Guide 75AA Short Acrobat JavaScript FAQ1Where can JavaScripts be found and how are they used?JavaScripts work with Acroba

Page 74

A Short Acrobat JavaScript FAQHow should I name my form fields?A76 Acrobat JavaScript Scripting Guidewithin the PDF document. Therefore, the forms pro

Page 75 - Document level

Acrobat JavaScript Scripting Guide 77A Short Acrobat JavaScript FAQHow do I use date objects?AWith our hierarchy of Name.First, Name.Middle and Name.L

Page 76 - Field level

A Short Acrobat JavaScript FAQHow do I use date objects?A78 Acrobat JavaScript Scripting GuideTo convert a Date object into a string, the printd of th

Page 77 - How do I use date objects?

Acrobat JavaScript Scripting Guide 79A Short Acrobat JavaScript FAQHow do I use date objects?AConverting from a string to a dateTo convert a string in

Page 78

Preface How To Use This Guide 8 Acrobat JavaScript Scripting Guide After reading this guide and completing the exercises, you should be equipped to s

Page 79 - Date arithmetic

A Short Acrobat JavaScript FAQHow do I use date objects?A80 Acrobat JavaScript Scripting Guiderepresentation. Internally, JavaScript dates are stored

Page 80

Acrobat JavaScript Scripting Guide 81A Short Acrobat JavaScript FAQHow can I make my document secure?AHow can I make my document secure?Security in Ac

Page 81 - Digital Signatures

A Short Acrobat JavaScript FAQHow can I make restricted Acrobat JavaScript methods available to users?A82 Acrobat JavaScript Scripting Guide“official”

Page 82

Acrobat JavaScript Scripting Guide 83A Short Acrobat JavaScript FAQHow can I make my documents accessible?AThe setLock method of the Field Object obje

Page 83 - Document Metadata

A Short Acrobat JavaScript FAQHow can I define globals in JavaScript?A84 Acrobat JavaScript Scripting GuideShort DescriptionEvery field that is not hi

Page 84 - Reading Order

Acrobat JavaScript Scripting Guide 85A Short Acrobat JavaScript FAQHow can I send form data to an e-mail address?AMaking Globals PersistentGlobal data

Page 85 - Making Globals Persistent

A Short Acrobat JavaScript FAQHow can I intercept keystrokes one by one as they occur?A86 Acrobat JavaScript Scripting GuideThen, when your document (

Page 86

Acrobat JavaScript Scripting Guide 87A Short Acrobat JavaScript FAQHow can I prompt the user for a response in a dialog?AHow can I prompt the user for

Page 87

A Short Acrobat JavaScript FAQHow can I determine if the mouse has entered/left a certain area?A88 Acrobat JavaScript Scripting GuideHow can I determi

Page 88

89IndexIndexAAcrobatapplications 15plug-in 12Acrobat Database Connectivity. See ADBCactionsJavaScript 60setting options 58with JavaScript 58ADBCSee al

Page 89

Acrobat JavaScript Scripting Guide 9 Preface Font Conventions Used in This Book Font Conventions Used in This Book The Acrobat documentation uses tex

Page 90

90 Acrobat JavaScript Scripting GuideIndexautomatic date field 55calculation 56core 12creating simple scripts 55deleting 61document level 7, 60editors

Comments to this Manuals

No comments