Developing Applications Using Interapplication Communication 4

Developing Applications Using Interapplication Communication 4

Interapplication Communication with the Acrobat SDK © 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 Contents List of Examples ......................................................................................................................... 12 1 Developing Applications Using IAC .........................................................................................13 About the API object layers ......................................................................................................................................................13 Object reference syntax.......................................................................................................................................................13 Objects in the Acrobat DC application layer................................................................................................................14 Objects in the portable document layer .......................................................................................................................15 Plugins for extending the IAC interfaces .............................................................................................................................16 Developing for Acrobat Reader ..............................................................................................................................................16 DDE messages ...............................................................................................................................................................................19 Apple events ..................................................................................................................................................................................19 2 Using OLE ...................................................................................................................................20 OLE capabilities in Acrobat DC................................................................................................................................................21 On-screen rendering.............................................................................................................................................................21 Remote control of Acrobat DC..........................................................................................................................................21 PDF browser controls ...........................................................................................................................................................21 Development environment considerations .......................................................................................................................22 Environment configuration................................................................................................................................................23 Necessary C knowledge.......................................................................................................................................................24 Using the Acrobat DC OLE interfaces....................................................................................................................................25 About the CAcro classes......................................................................................................................................................25 About the COleDispatchDriver class...............................................................................................................................25 Using COleDispatchDriver objects and methods.......................................................................................................25 Using the JSObject interface....................................................................................................................................................29 Adding a reference to the Acrobat DC type library...................................................................................................29 Creating a simple application............................................................................................................................................30 Working with annotations..................................................................................................................................................31 Spell-checking a document................................................................................................................................................34 Tips for translating JavaScript to JSObject ...................................................................................................................36 Other development topics........................................................................................................................................................37 Synchronous messaging .....................................................................................................................................................37 MDI applications ....................................................................................................................................................................37 Event handling in child windows.....................................................................................................................................37 Determining if an Acrobat DC application is running ..............................................................................................38 Exiting from an application................................................................................................................................................38 Summary of OLE objects and methods................................................................................................................................39 3 Using DDE...................................................................................................................................40 4 Using Apple Events....................................................................................................................41 5 OLE Automation......................................................................................................................... 42 AcroExch.App ................................................................................................................................................................................42 CloseAllDocs ............................................................................................................................................................................44

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    257 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us