
Developing Acrobat Applications Using JavaScript 2/1/21 Adobe, Inc. Adobe Acrobat SDK Documentation. © 2020 Adobe Inc. All rights reserved. If this guide is distributed by Adobe with software that includes an end user agreement, this guide, as well as the software described in it, is furnished under license and may be used or copied only in accordance with the terms of such license. Except as permitted by any such license, no part of this guide may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of Adobe. Please note that the content in this guide is protected under copyright law even if it is not distributed with software that includes an end user license agreement. This guide is governed by the Adobe Acrobat SDK License Agreement and may be used or copied only in accordance with the terms of this agreement. Except as permitted by any such agreement, no part of this guide may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of Adobe. Please note that the content in this guide is protected under copyright law. Please remember that existing artwork or images that you may want to include in your project may be protected under copyright law. The unauthorized incorporation of such material into your new work could be a violation of the rights of the copyright owner. Please be sure to obtain any permission required from the copyright owner. Any references to company names, company logos, and user names in sample material or sample forms included in this documentation and/or software are for demonstration purposes only and are not intended to refer to any actual organization or persons. Adobe, the Adobe logo, Acrobat, Distiller, and Reader are either registered trademarks or trademarks of Adobe the United States and/or other countries. All other trademarks are the property of their respective owners. Notice to U.S. Government End Users. The Software and Documentation are “Commercial Items,” as that term is defined at 48 C.F.R. §2.101, consisting of “Commercial Computer Software” and “Commercial Computer Software Documentation,” as such terms are used in 48 C.F.R. §12.212 or 48 C.F.R. §227.7202, as applicable. Consistent with 48 C.F.R. §12.212 or 48 C.F.R. §§227.7202-1 through 227.7202-4, as applicable, the Commercial Computer Software and Commercial Computer Software Documentation are being licensed to U.S. Government end users (a) only as Commercial Items and (b) with only those rights as are granted to all other end users pursuant to the terms and conditions herein. Unpublished-rights reserved under the copyright laws of the United States. Adobe Inc., 345 Park Avenue, San Jose, CA 95110-2704, USA Adobe Acrobat DC SDK Acrobat JS Developer Guide 3 List of Examples ........................................................................................................................... 9 1 Introduction ...............................................................................................................................11 Reading the JavaScript for Acrobat API Reference..............................................................................................................12 Object summary ...........................................................................................................................................................................12 app...............................................................................................................................................................................................13 Doc ..............................................................................................................................................................................................13 dbg ..............................................................................................................................................................................................14 console.......................................................................................................................................................................................14 global..........................................................................................................................................................................................14 util................................................................................................................................................................................................14 dialog..........................................................................................................................................................................................14 security.......................................................................................................................................................................................14 SOAP...........................................................................................................................................................................................15 search .........................................................................................................................................................................................15 event...........................................................................................................................................................................................15 JavaScript applications...............................................................................................................................................................15 2 Tools ...........................................................................................................................................18 Using the JavaScript Debugger console..............................................................................................................................18 Opening the console ............................................................................................................................................................18 Executing JavaScript.............................................................................................................................................................18 Formatting code.....................................................................................................................................................................19 Enabling JavaScript ...............................................................................................................................................................19 Debugging with the JavaScript Console.......................................................................................................................20 Using a JavaScript editor ...........................................................................................................................................................21 Specifying the default JavaScript editor..............................................................................................................................21 Using an external editor.............................................................................................................................................................22 Additional editor capabilities ............................................................................................................................................22 Specifying additional capabilities to your editor .......................................................................................................23 Saving and closing a file with a syntax error................................................................................................................24 Using the Debugger with Acrobat Reader DC...................................................................................................................24 Enabling the JavaScript Debugger ........................................................................................................................................25 JavaScript Debugger...................................................................................................................................................................26 Main groups of controls.......................................................................................................................................................27 Debugger View windows....................................................................................................................................................27 Debugger buttons.................................................................................................................................................................28 Debugger Scripts window..................................................................................................................................................30 Call Stack list ............................................................................................................................................................................31 Inspect details window........................................................................................................................................................32
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages227 Page
-
File Size-