Enhancing Adobe Acrobat Forms with JavaScript: Take Your Forms to the Next Level!, 2nd Edition / Улучшение форм Adobe Acrobat с помощью JavaScript: Поднимите ваши формы на новый уровень!, 2-е издание Год издания: 2023 Автор: Harder Jennifer / Хардер Дженнифер Издательство: Apress ISBN: 978-1-4842-9470-3 Язык: Английский Формат: PDF Качество: Издательский макет или текст (eBook) Интерактивное оглавление: Да Количество страниц: 756 Описание: Take your PDF forms to the next level! In this book, you’ll learn various ways to further improve your PDF forms using simple JavaScript coding. You’ll also discover how a few lines of code can speed up your workflow when working with multiple PDFs in Action Wizard. Enhancing Adobe Acrobat Forms with JavaScript covers up-to-date, real working examples that you can easily download and practice with and edit to suit your own projects. This book also shows workarounds and solutions to various form issues you might encounter. Feel empowered by it and improve your PDF documents! JavaScript has been a part of Adobe Acrobat for many versions. However, few people use its features and focus mainly on using basic form properties, never delving deeper into Acrobat’s full capabilities. While information on the web can be helpful, if you don’t know enough about how to use JavaScript in Acrobat you will be left with poor results. JavaScript can be difficult to learn, but it does not need to be scary. This book explains in simple steps for beginner to intermediate level so that you can take full advantage of Acrobat’s capabilities for your own projects. What You Will Learn Learn simplified field notation and basic JavaScript for Acrobat Work with buttons that can be used for navigation Improve form navigation and printing of forms Add various types of alerts and custom validations to improve client-entered-data Learn the basics of how to prepare a form for e-signing Who Is This Book For: This book is for anyone who needs to create forms for clients or websites. Students, lawyers, accountants, and human resources will be able to take their work to the next level by streamlining their workflow and utilizing advanced JavaScript features in Adobe Acrobat. Поднимите ваши PDF-формы на новый уровень! В этой книге вы узнаете о различных способах дальнейшего улучшения ваших PDF-форм с помощью простого кодирования на JavaScript. Вы также узнаете, как несколько строк кода могут ускорить ваш рабочий процесс при работе с несколькими PDF-файлами в Action Wizard. Усовершенствование форм Adobe Acrobat с помощью JavaScript включает в себя современные реальные рабочие примеры, которые вы можете легко загрузить, попрактиковаться с ними и отредактировать в соответствии с вашими собственными проектами. В этой книге также показаны обходные пути и решения различных проблем с формой, с которыми вы можете столкнуться. Почувствуйте прилив сил и улучшайте свои PDF-документы! JavaScript был частью Adobe Acrobat на протяжении многих версий. Однако мало кто пользуется его функциями и сосредотачивается в основном на использовании базовых свойств формы, никогда не углубляясь во все возможности Acrobat. Хотя информация в Интернете может быть полезной, если вы недостаточно знаете о том, как использовать JavaScript в Acrobat, вы получите плохие результаты. JavaScript может быть трудным в освоении, но это не обязательно должно быть страшно. В этой книге описаны простые шаги для начинающих и среднего уровня, чтобы вы могли в полной мере использовать возможности Acrobat для своих собственных проектов. Чему Вы научитесь Изучите упрощенную нотацию полей и основы JavaScript для Acrobat Работайте с кнопками, которые можно использовать для навигации Улучшите навигацию по формам и печать формуляров Добавляйте различные типы оповещений и пользовательские проверки для улучшения вводимых клиентом данных Изучите основы подготовки формы для электронной подписи Для кого эта книга: Эта книга предназначена для всех, кому необходимо создавать формы для клиентов или веб-сайтов. Студенты, юристы, бухгалтеры и сотрудники отдела кадров смогут поднять свою работу на новый уровень, оптимизировав рабочий процесс и используя расширенные функции JavaScript в Adobe Acrobat.
Примеры страниц
Оглавление
About the Author ...............................................................................xiii About the Technical Reviewer ............................................................xv Acknowledgments ............................................................................xvii Introduction .......................................................................................xix Part I: Basic Form Improvements ................................................1 Chapter 1: A Fundamental Forms Primer .............................................3 Forms Review .......................................................................................................3 Fields Refresher ..................................................................................................15 Properties Refresher ...........................................................................................24 Text Box Field Properties and Date Field Properties Dialog Boxes ................25 Dropdown Properties Dialog Box ...................................................................26 List Box Properties Dialog Box ......................................................................28 Check Box Properties Dialog Box ..................................................................29 Radio Button Properties Dialog Box ...............................................................30 Button Properties and Image Properties Dialog Box .....................................31 Digital Signature Properties Dialog Box.........................................................32 Barcode Properties Dialog Box ......................................................................33 Tabs Refresher ....................................................................................................34 Editing Your Form with the More Menu and Right Pane .....................................44 Setting the Field Tab Order Using the Menu Options .....................................46 Clearing a Form While Working .....................................................................55 Summary.............................................................................................................58 Chapter 2: Introduction to Actions .....................................................59 Getting Started ....................................................................................................59 Rating Forms Value Averaging and Sum: Working with Text Fields.....................61 The Validate Tab .............................................................................................64 The Calculate Tab for the Grand Total Using Sum ...............................................69 Sum and Averaging Using Check Boxes or Radio Buttons with Text Fields ........72 Using Radio Buttons on Page 3 of the Project ...............................................74 Using Check Boxes on Page 3 of the Project .................................................80 Turning Check Boxes into Radio Buttons .......................................................82 Basic Action Button Triggers for Reset Buttons and Printing Buttons .................86 Reset Button ..................................................................................................86 Print Form Button ..........................................................................................90 Summary.............................................................................................................93 Chapter 3: Creating a QR Code Custom Stamp ...................................95 Customizing Your QR Code Stamp ......................................................................97 QR Code Creation ................................................................................................98 Using the Stamp Tool ........................................................................................104 Final Thoughts: QR Code for Professional Printing ............................................108 Summary...........................................................................................................110 Chapter 4: Buttons, Navigation, Form, and Nonform Actions ...........111 Creating a Button Icon ......................................................................................112 Example of a Button as a Label Only ...........................................................116 Example of a Button Combination of Icon Only ...........................................119 Nonform Properties Actions ..............................................................................121 Pages ...........................................................................................................121 Bookmarks ..................................................................................................124 Web and Custom Hyperlinks ........................................................................128 Rich Media Nonform Navigation Buttons .....................................................135 Layers Basic Actions....................................................................................137 Other Nonform Actions That Can Affect Sticky Note or Markup Tools Indirectly ............................................................................................140 Triggers for Actions ...........................................................................................140 Choose an Action That Requires No Code .........................................................142 Newsletter Navigation with Buttons .................................................................150 Form Navigation with a Button as a Helpful Hint ..............................................154 Adding a Comb of Characters ...........................................................................157 Before Comb and After Comb ......................................................................158 More Action Triggers to Show and Hide ............................................................161 Hide and Clear Fields Button .......................................................................164 Set Layer Visibility .............................................................................................167 Using Bookmarks ........................................................................................168 Using Buttons ..............................................................................................171 Summary...........................................................................................................173 Part II: Simplified Field Notation and Basic JavaScript ...........175 Chapter 5: Introduction to Simplified Field Notation and JavaScript ........................................................................................177 Getting Started ..................................................................................................178 Text Field, Date, and Drop-Down List Properties ...............................................179 Actions Tab ..................................................................................................179 Format Tab ...................................................................................................180 Validate Tab .................................................................................................182 Calculate Tab ...............................................................................................182 Check Box, Radio Button, Image Field, and Button Properties ..........................183 List Box Properties ............................................................................................184 Digital Signature Properties ..............................................................................186 Barcode Properties ...........................................................................................187 Global Document JavaScript .............................................................................188 Web Links and References ..........................................................................195 Regular Forms vs. E-Signature Forms.........................................................195 JavaScript and Acrobat on the Document Level ...............................................197 Summary...........................................................................................................197 Chapter 6: Basic and Complex Calculations .....................................199 Getting Started ..................................................................................................200 Sum Value .........................................................................................................202 Simplified Field Notation ...................................................................................204 JavaScript Custom Calculation Script ...............................................................207 Final Thoughts on Working with the Calculate Tab ...........................................211 JavaScript Script Validation for Displaying Zero ...............................................214 The Final Line of Code .................................................................................216 Drop-Down Alternatives ..............................................................................218 Set Field Calculation Order ..........................................................................219 Resetting Your Field of Focus ............................................................................221 Summary...........................................................................................................225 Chapter 7: Format Calculations ........................................................227 Number Formatting ...........................................................................................230 Formatting with a Percentage ..........................................................................233 A Workaround for the Percentage ...............................................................235 Reset Fields with JavaScript .......................................................................241 Date Formatting ................................................................................................242 Date Formatting with JavaScript .................................................................244 Time Formatting ................................................................................................251 Time Formatting with JavaScript, a Custom Example .................................256 Comb of Characters for Dates .....................................................................260 Special Formatting ............................................................................................261 Final Thoughts ...................................................................................................262 Drop-Down Alternatives ..............................................................................263 More Information on Adding Decimal Places and Leading Zeros ................263 Summary...........................................................................................................264 Chapter 8: Various JavaScript Alerts, Notes, and Time Stamps .......267 Alert Types.........................................................................................................269 Create a Document JavaScript..........................................................................270 Viewer Version and Validation Alert ...................................................................274 Document Actions .............................................................................................277 Document Will Close ....................................................................................278 Document Will Print .....................................................................................279 Alerts Working with Buttons..............................................................................280 Adding a Comment Note, Signature, and Time Stamp ......................................283 Signature Field and Time Stamp .................................................................289 Summary...........................................................................................................294 Chapter 9: Create Help for Clients with Rollover Text and Alerts .....295 The Rollover Method .........................................................................................296 Mouse Enter ................................................................................................301 Mouse Exit ...................................................................................................302 Longer Array Example (Optional) .................................................................302 Extra Noncustom JavaScript Check Box Example .......................................303 How to Show and Hide Fields with JavaScript ............................................304 The Default Text Method ...................................................................................307 The Alert Method ...............................................................................................311 Customer’s Full Name .................................................................................312 Date .............................................................................................................316 Customer Order Code ..................................................................................320 Customer’s Company Name ........................................................................322 How to Duplicate Text for Multiple Fields and Make Fields Read-Only .............324 Set Fields to Read-Only with JavaScript .....................................................328 Final Thoughts ...................................................................................................329 Summary...........................................................................................................330 Chapter 10: Various Types of Formatting with JavaScript ...............331 Adding Global Formatting to Text Fields............................................................332 Color Properties ................................................................................................338 Array and Variable Examples of Formatting Properties ....................................339 Multiline Buttons ...............................................................................................343 Multiline Text .....................................................................................................346 Complex Formatting Using Check Boxes and a Text Field ................................351 Rich Text Formatting for Text Fields and Comments .........................................359 Comment Example ......................................................................................363 Final Thoughts on Formatting with Text ......................................................365 Silent Printing ...................................................................................................367 Options for Submit Button Using Email .............................................................370 Summary...........................................................................................................375 Part III: Working with More Complex Forms............................377 Chapter 11: Validation with Text Boxes, Alerts, and Radio Buttons ...................................................................................379 Money Transfer Example ...................................................................................380 Alternate Way to Work with Radio Buttons Without Alerts ...........................389 Changing the Shipping Price Using Radio Buttons ...........................................393 Additional Radio Button Example with JavaScript and Text Fields and How to Change Data for Time ...........................................................................403 Setting Up the Text Fields ............................................................................407 Check Box Variation with Date Text Fields ...................................................409 Notes on Changing Formatting Options for Radio Button, Check Box, and Button Style ..........................................................................................410 Text Field Validation with Regular Expressions .................................................415 Telephone Validation ....................................................................................417 Name Validation ...........................................................................................421 Account Number Validation .........................................................................424 Email and URL Validation .............................................................................425 Another Phone and Date Example with Two Variables ................................426 Final Thoughts on Formatting Fields .................................................................429 Summary...........................................................................................................432 Chapter 12: Working with Dropdown Lists .......................................433 Current Skills Request Form .............................................................................434 Parts Order Form...............................................................................................443 Drop-Down Lists with Select Dates and Discounts ...........................................465 Final Thoughts ...................................................................................................470 Load a Lengthy Single Drop-Down or List Menu .........................................470 Tips on Changing Custom Formatting for Drop- Down Lists with JavaScript ....................................................................................................473 Summary...........................................................................................................474 Chapter 13: Working with List Boxes ...............................................475 List Box Priority List with Control Buttons.........................................................476 The Add Button ............................................................................................481 The Delete Button ........................................................................................482 The Clear or Reset Button ............................................................................483 The Up Button ..............................................................................................483 The Down Button .........................................................................................484 Check Box, Drop-Down, and List Box: Example 1 .............................................488 Check Box, List Box, and Multi-Drop-Down: Example 2 ....................................495 Button Slide Show Variation ..............................................................................505 Extra Example Priority List Improved ...........................................................506 Final Thoughts ...................................................................................................515 Hidden Fields ...............................................................................................515 Using List Boxes for a Number Rating .........................................................517 Notes on Changing Custom Formatting for List Boxes ................................517 Summary...........................................................................................................518 Chapter 14: Advanced Navigation: The Pop-Up Menu ......................519 The Pop-Up Menu Example ...............................................................................520 Add a Pop-Up Menu Using a Bookmark ............................................................527 Final Thoughts ...................................................................................................532 Summary...........................................................................................................533 Part IV: Beyond the Basics .......................................................535 Chapter 15: Action Wizard and JavaScript .......................................537 Working with the Action Wizard ........................................................................538 Reuse JavaScript from Chapter 8 ................................................................549 Is It a Custom Action or a Custom Command? ..................................................550 Create and Manage Custom Commands .....................................................551 Summary...........................................................................................................552 Chapter 16: Multistate Check Boxes .................................................553 The Problem of Multistate Check Boxes ...........................................................553 Bonus Star Rating Idea .....................................................................................563 Select All or Deselect All Check Boxes at Once.................................................565 Summary...........................................................................................................569 Chapter 17: Importing an Image into a Button .................................571 Creating the Button ...........................................................................................572 Summary...........................................................................................................577 Chapter 18: Multiple Formatting ......................................................579 The Problem of Multiple Formatting .................................................................579 Option 1: Do It Yourself ......................................................................................583 Price Script ..................................................................................................585 No Price Script .............................................................................................586 Adding a Degree Symbol and Formatting Range .........................................593 Option 2: Contact a Professional .......................................................................598 Summary...........................................................................................................600 Chapter 19: Digital Signatures and Barcodes ...................................601 Digital Signatures and Security.........................................................................602 Working with Digital Signatures and Other Adobe Security Tools ...............611 Create a Security Puzzle ..............................................................................620 Barcodes ...........................................................................................................625 Summary...........................................................................................................628 Chapter 20: What Are E-Signature Forms and Web Forms? .............629 A Brief Look at Request E-Signatures and Resources ......................................631 What Are Web Forms? .......................................................................................649 Summary...........................................................................................................685 Part V: Putting It into Practice .................................................687 Chapter 21: Homework Assignments ...............................................689 Homework Assignment 1: Show and Hide ........................................................689 Homework Assignment 2: Working with JavaScript to Create Formulas ..........708 Area of a Circle A = π r 2 ..............................................................................710 Field: CircumferenceRow1 Circumference of a Circle C = 2 π r ..................711 Field: VolumeRow1 Volume of a Sphere V = 4/3 π r3 ...................................711 Field: FahrenheitRow1 Celsius to Fahrenheit to Formula. (°C x 9/5) + 32 = °F. ....................................................................................711 Field: CelsiusRow1_2 Fahrenheit to Celsius Formula. (°F - 32) x 5/9 = °C ......................................................................................712 Homework Assignment 3: Custom Validation and Regular Expressions ...........715 Homework Assignment 4: Personal Drop-Down List Menu and Definitions Text Box ...........................................................................................726 Summary...........................................................................................................735 Index .................................................................................................737
Harder Jennifer / Хардер Дженнифер - Enhancing Adobe Acrobat Forms with JavaScript: Take Your Forms to the Next Level!, 2nd Edition / Улучшение форм Adobe Acrobat с помощью JavaScript: Поднимите ваши формы на новый уровень!, 2-е издание [2023, PDF, E download torrent for free and without registration
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum