JavaScript For Acrobat API Reference

Transcription

JavaScript for Acrobat API Reference2/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, isfurnished under license and may be used or copied only in accordance with the terms of such license. Except as permitted by any suchlicense, 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 protectedunder 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 thisagreement. 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 thatthe 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. Theunauthorized incorporation of such material into your new work could be a violation of the rights of the copyright owner. Please be sure toobtain 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 documentationand/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 othercountries.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 SDKDeveloping Plug-ins and Applications13Getting Started with Acrobat JavaScript. 1Syntax . 1Paths. 2Safe path. 2Privileged context . 2Privileged versus non-privileged context . 2User preferences. 3Quick bars. 3Domain names in code samples. 52JavaScript API . 6Alerter. 7Alerter methods. 7dispatch. 7AlternatePresentation .10AlternatePresentation properties .10active .10type.10AlternatePresentation methods .10start .11stop .11annotAttachment.12annotAttachment pe.13modDate .13name.13pathname .14size .14Annotation.15Annotation types .15Annotation properties.17alignment .18attachment.19AP orderEffectIntensity .22borderEffectStyle .23callout .23cAttachmentPath.23caretSymbol.24contents .24creationDate.25dash .25delay .26doc .26doCaption.27

Adobe Acrobat SDKDeveloping Plug-ins and Applications4fillColor Extend .30leaderLength .30lineEnding .30lock.31modDate .31name.32noteIcon .32noView.33opacity .33overlayText.34page.34point .35points .36popupOpen .36popupRect.37print .37quads.37rect .38readOnly.38refType.38repeat.39richContents .39richDefaults.40rotate.41seqNum .41soundIcon.41state .42stateModel .42strokeColor.42style.43subject .43textFont.44textSize .44toggleNoView .45type.45vertices .46width .46Annotation methods .47destroy.47getProps.47getStateInModel .48setProps.49transitionToState .49AnnotRichMedia .51AnnotRichMedia properties.51activated .51

Adobe Acrobat SDKDeveloping Plug-ins and Applications5context3D.51name.52page.52rect .52subtype.52AnnotRichMedia methods.53callAS.53Annot3D .55Annot3D properties .55activated .55context3D.55innerRect.56name.56page.56rect .56app.58app properties.58activeDocs .58calculate .59constants .59focusRect .60formsVersion .60fromPDFConverters .60fs.61fullscreen .61language .62media .62monitors.63numPlugIns.63openInPlace .64platform.64plugIns .64printColorProfiles.65printerNames .65runtimeHighlight .66runtimeHighlightColor .66thermometer .66toolbar .67toolbarHorizontal .67toolbarVertical .67viewerType.68viewerVariation .68viewerVersion.69app methods .69addMenuItem .69addSubMenu.

Adobe Acrobat SDK Developing Plug