3 Replies Latest reply on May 23, 2011 7:01 AM by Rick Thornquist

    Javascript Window in PDF?

    Rick Thornquist Level 1

      I've come across a Javascript application which can emulate a 486 computer.  I'm looking to embed this application into a PDF.  Is this possible?

       

      I've been reading about Javascript in PDFs and it seems that an application can't have it's own window.  That would tell me the answer is no, but if someone in the know could confirm I'd appreciate it.

       

      Here's a link to the application: http://bellard.org/jslinux/

       

      Thanks!

       

      - Rick

        • 1. Re: Javascript Window in PDF?
          Dave Merchant MVP & Adobe Community Professional

          Not possible. Acrobat JavaScript is different to the JavaScript used in web browsers, it can be run from the debug console in Acrobat but it cannot emulate a console, nor can you embed anything into a PDF file that draws DHTML objects.

          • 2. Re: Javascript Window in PDF?
            maxwyss Level 4

            If everything, which means, really everything, including the Linux kernel) is in JavaScript, it could be done.

             

            HOWEVER, Acrobat JavaScript uses "only" the JavaScript Core, but not the client-side browser parts. That means, that a lot had to be recreated as a PDF form, and the code accordingly rewritten.

             

            This also means that the whole user interface had to be recreated. This is possible, and feasible. It would, however, not give a comparable indication about the performance of the JavaScript engine, because the JavaScript engine has to do a lot more than in the browser environment.

             

            In any case, it would be more than a weekend project.

             

            Max Wyss.

            1 person found this helpful
            • 3. Re: Javascript Window in PDF?
              Rick Thornquist Level 1

              Thanks for the help, guys.  I guess I'll have to do it another way.

               

              - Rick