0 Replies Latest reply on Nov 29, 2008 9:58 AM by (mitesh_patel)

    controlling pdf reader embedded in air application via htmlloader wrapper...

      I am trying to create a note-taking application in air. I want to extract selected text from pdf file (opened via HTMLLoader wrapper) and directly paste it in a textarea (or similar text controls, like textInput), may be through clipboard.

      Obviously, all pdfs in my local storage will not be scripted to recieve postMessages and act accordingly, and that is not practical either. So, my problem is, how can I copy the text selected in the pdf file (opened as an object in htmlloader) to clipboard or directly in another control by say clicking a button in air application? I suppose, this is possible using javascript, however, I don't know which reader methods are exposed to the wrapper htmlloader control. In short, I want to execute app.execMenuItem("Copy") command through htmlloader javascript. Any alternate solutions are also welcome.

      This is similar to passing inbuilt commands/methods/functions (of adobe reader) to pdf-reader plugin embedded in a webpage via javascript. This is possible in IE where the pdf is rendered as activex object, and hence JSObject interface of pdf document/reader is accessible to the browser javascript. I have also read that this same JSObject is accessible to VB as interface for IAC, so as the Air is Adobe's own product, I was wondering if equivalent of JSObject is accessible to htmlloader control as well.

      Thanks in advance...