5 Replies Latest reply on Aug 16, 2006 8:51 AM by Leo

    printing a pdf on CD

    Opera Rat
      How do I have a button print a pdf file from a cd-rom or harddrive? I never need to display this file. I just need to point to it and print it.
        • 1. Re: printing a pdf on CD
          Level 7
          You can use Buddy API (of course) - baPrintFile()

          If you ever need to display a PDF on your stage try Impressario:
          < http://www.inm.com>
          • 2. Re: printing a pdf on CD
            Opera Rat Level 1
            So something like this as a movie script that gets called:

            on printMusic
            set prntMusic = baPrintFile("theFile.pdf")
            prntMusic
            end

            Well I tried this and indeed it does print. BUT somehow there is an error. My director movie does not have a window box - it fills the entire screen and there is no task bar showing in windows. So when acrobat reader opens the taskbar appears a script error alert box opens and the file prints. I never see the acrobat window, which is ok. I just want the file to print out. What am I doing wrong?
            • 3. Re: printing a pdf on CD
              Level 7
              Opera Rat wrote:
              > So something like this as a movie script that gets called:
              >
              > on printMusic
              > set prntMusic = baPrintFile("theFile.pdf")
              > prntMusic
              > end
              >
              > Well I tried this and indeed it does print. BUT somehow there is an
              > error. My director movie does not have a window box - it fills the
              > entire screen and there is no task bar showing in windows. So when
              > acrobat reader opens the taskbar appears a script error alert box
              > opens and the file prints. I never see the acrobat window, which is
              > ok. I just want the file to print out. What am I doing wrong?

              Take out the line that says only "prntMusic" or check its value to see if
              baPrintFile executed without error.

              Andrew


              • 4. printing a pdf on CD
                Opera Rat Level 1
                Now it works without an error. The taskbar still pops up but that's o.k. I guess the user needs to know that another program has opened. Once the user clicks back on the movie the taskbar disapperars.
                • 5. Re: printing a pdf on CD
                  Leo
                  Getting a 404 error - page cannot be displayed