Skip navigation
Currently Being Moderated

Using the print button to print then close a document

Mar 26, 2012 12:21 AM

I use Live Cycle Designer to create my Adobe documents.  I am working on a kiosk project and one of the menus navigates to a document page that has PDF documents and forms for users to print out.  The way the kiosk is designed, I would like for my pdf file to close after the print button is selected.  I recieved a solution in the general Adobe forum, but later found out the script does not work if the document was made using Live Cycle.  Any suggestions???  Is it possible??? Thanks.

 
Replies
  • Currently Being Moderated
    Mar 26, 2012 4:38 AM   in reply to ti_ger_p_a_w

    Hi,

     

    what solution did u get from Adobe forum ?

     

    you can write either of the following script on post-print event (print-button) to close the PDF after the print button is clicked -

     

    app.execMenuItem("Close"); (JavaScript)

    OR

    event.target.closeDoc(true); (FormClac)

     

    Regards -

    Chalukya.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 26, 2012 5:07 AM   in reply to ti_ger_p_a_w

    Open your PDF file in adobe livecycle designer, select print button on PDF.

    Go to windows(in adobe designer menu bar) and select Script Editor - In Show dropdown list select postPrint event and copy paste the code below-

     

    app.execMenuItem("Close");

     

    Regards-

    Chalukya.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 26, 2012 5:09 AM   in reply to chalukya

    Hi,

     

    You can also search for Scritp Editor in Adobe Designer Help, you will get the info about script editor.

     

    All the best -

    Chalukya.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points