Detailed instructions for use are in the User's Guide.
bc
Developing for Adobe® Reader®
Adobe® Acrobat® SDK
November 2006 Version 8.0
© 2006 Adobe Systems Incorporated. All rights reserved. Adobe® Acrobat® SDK 8.0 Developing for Adobe Reader for Microsoft® Windows®, Mac OS®, Linux®, and UNIX® Edition 1.0, November 2006 If this guide is distributed 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 Systems Incorporated. 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. The content of this guide is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may appear in the informational content contained in this guide. 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 and company logos in sample material are for demonstration purposes only and are not intended to refer to any actual organization. Adobe, the Adobe logo, Acrobat, Reader, LiveCycle, Photoshop, PostScript, Illustrator, and After Effects are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. AIX is a trademark of International Business Machines Corporation in the United States and/or other countries. Apple and Mac OS are trademarks of Apple Computer, Inc., registered in the United States and other countries. HP-UX is a registered trademark of Hewlett-Packard Company. Intel is a registered trademark of Intel Corporation in the U.S. and other countries. JavaScript and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. Linux is a registered trademark of Linus Torvalds. Microsoft and Windows are either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Pentium is a trademark or registered trademark of Intel Corporation or its subsidiaries in the U.S. and other countries. Red Hat is a trademark or registered trademark of Red Hat, Inc. in the United States and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. UNIX is a registered trademark of The Open Group in the United States and other countries. All other trademarks are the property of their respective owners. Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA. 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 Systems Incorporated, 345 Park Avenue, San Jose, CA 95110-2704, USA. For U.S. Government End Users, Adobe agrees to comply with all applicable equal opportunity laws including, if appropriate, the provisions of Executive Order 11246, as amended, Section 402 of the Vietnam Era Veterans Readjustment Assistance Act of 1974 (38 USC 4212), and Section 503 of the Rehabilitation Act of 1973, as amended, and the regulations at 41 CFR Parts 60-1 through 60-60, 60-250, and 60-741. The affirmative action clause and regulations contained in the preceding sentence shall be incorporated by reference.
Contents
Preface .......................................................................................................................................... 4
What's in this guide? ..................................................................................................................................................................... 4 Who should read this guide? ..................................................................................................................................................... 4 Related documentation ............................................................................................................................................................... 4
1
Introduction ................................................................................................................................. 6
Supported platforms..................................................................................................................................................................... 6 Windows...................................................................................................................................................................................... 6 Mac OS ......................................................................................................................................................................................... 6 Linux ............................................................................................................................................................................................. 7 Solaris ........................................................................................................................................................................................... 7 AIX ................................................................................................................................................................................................. 8 HP-UX ........................................................................................................................................................................................... 8 Technologies available within the Acrobat SDK................................................................................................................. 8 JavaScript .................................................................................................................................................................................... 9 Interapplication communication ....................................................................................................................................... 9 Plug-ins ........................................................................................................................................................................................ 9
2 3
JavaScript APIs........................................................................................................................... 10
Objects, properties and methods...........................................................................................................................................10
Interapplication Communication ............................................................................................. 25
OLE automation ............................................................................................................................................................................25 DDE messages ...............................................................................................................................................................................27 Apple events ..................................................................................................................................................................................27
4
Plug-ins....................................................................................................................................... 28
APIs available for Adobe Reader.............................................................................................................................................29
Index ........................................................................................................................................... 30
3
Preface
Adobe® Reader® belongs to the Adobe Acrobat® family of products, and is used for viewing, navigating, and printing PDF documents. For more information on the Acrobat family of products, see http://www.adobe.com/go/acrobat_developer.
What's in this guide?
This guide provides an introduction to those portions of the Adobe Acrobat Software Development Kit (SDK) that pertain to your development efforts for Adobe Reader. It provides a general overview of the types of things you can do with the SDK and the technologies that are available to you through the SDK. This document provides a starting point for developers who would like to understand how to extend or customize Adobe Reader, and provides information clarifying how such efforts differ from those intended for Acrobat. It is possible to extend and customize Adobe Reader by using the Adobe Acrobat SDK to write JavaScriptTM code, implement interapplication communication, and write plug-ins. This document indicates the relevant subsets of the JavaScript APIs, interapplication communication APIs, and the Acrobat and PDF Library APIs. It describes each of those collections of APIs and their intended purposes, and clarifies what is available on all supported platforms.
Who should read this guide?
This guide is meant for developers who are either new to Adobe Reader development or have experience with the Acrobat SDK. For information about Acrobat SDK technologies and the many ways that developers can extend Acrobat or Adobe Reader using the Acrobat SDK, see the Overview.
Related documentation
The following resources and samples provide further information about the Acrobat SDK, as well as additional documents that you should have available for reference. For information about A roadmap containing descriptions of all the documentation in the Acrobat SDK. A description of known issues and implementation details specific to the various platforms supported in the Acrobat SDK. Answers to frequently asked questions about the Acrobat 8.0 SDK. The new features in this SDK release. See Acrobat SDK Documentation Roadmap Readme
Developer FAQ What's New
4
Adobe Acrobat SDK
Developing for Adobe Reader
Preface
Related documentation 5
For information about A general overview of the capabilities and usage of the Acrobat SDK. An introduction to those portions of the Acrobat SDK that pertain to development efforts for Adobe Reader. Descriptions and implementation details for samples included with the Acrobat SDK. An overview of the SnippetRunner tool and the plug-in snippets provided with the Acrobat SDK. A description of how to develop external applications that use Apple events, AppleScript, DDE, or OLE to control Acrobat or Adobe Reader or render PDF documents. Detailed descriptions of the APIs available for Apple events, AppleScript, DDE, or OLE to control Acrobat or Adobe Reader or render PDF documents. An overview of how to use JavaScript to develop and enhance standard workflows in Acrobat or Adobe Reader. Detailed descriptions of the JavaScript APIs for developing and enhancing standard workflows in Acrobat or Reader. A detailed description of the PDF file format. A description of how to develop plug-ins for Acrobat and Adobe Reader, as well as PDF Library applications. A detailed description of the APIs available to create plug-ins for Acrobat and Adobe Reader, as well as PDF Library applications. Describes the syntax and semantics of the PostScript language and the Adobe imaging model.
See Overview Developing for Adobe Reader Guide to SDK Samples Snippet Runner Cookbook Developing Applications using Interapplication Communication Interapplication Communication API Reference Developing Acrobat Applications using JavaScript JavaScript for Acrobat API Reference PDF Re ...