Skip to Content

Acrobat Inter Application Communication

Writing a latex document differs much from any other word processing program. It is just like writing a program. I feel much better when there is an IDE for a particular language I am using. Agreed, many can go without IDE. Take Mr. Wood, for example, he always babbling teases me and said that emacs or vi is the best. Well, not for me. Those editors are nice but that is not enough. Though emacs is easily extensible, I don’t want to spend my time there. EditPlus is also nice, I used it to write latex for my master thesis but that is also not enough.

So, I search amongst readily available latex editor. WinEdt is my long time favorite since I started my Ph.D. but it is not gratis (finger crossed). And there come many others. Latex Editor (LEd) is a good one, not open source but a freeware. However, the big problem is that, when you use pdflatex and the document is already open, it always complain, when you are compiling, that the document cannot be written. The problem is caused by Acrobat, since it lock the file. WinEdt solves this problem by closing the document in Acrobat before compile. WinEdt do so by a mean of DDE. but LEd can’t do the same.

However, LEd support user command (just like edit plus), so, I have to write a program to close a specific document in Acrobat.

Adobe provides SDK for Acrobat and there is a very very easy way to communicate with Acrobat, via DDE.

Just send [DocClose(“filename”)], to the DDE server of acroview, and the document is closed… However, the document must be manipulable by DDE. If you simply open the document, the document is immanipulable. To rectify this problem, simply send [DocOpen(“filename”)] and the document will be added to the DDE manipulable list.

That’s all.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Allowed HTML tags: <pre> <span> <div> <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <hr> <div> <img> <blockquote> <pre> <br> <table> <tr> <td> <th> <thead> <tbody>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • LaTex commands embedded in text will be interpreted and rendered. Additional information can be found at DruTex Documentation Pages
    • Provides different environments to create rendered images (especially maths).
    • Line and paragraphs break automatically.
    • Assists automatic numbering of tex, equation, and equations environments.
    • Images can be added to this post.
    • Adds typographic refinements.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.