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.
Solved! Go to Solution.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
OK thanks for the reply, my next question is how do I go about adding the script to the print button. I've tried right clicking, I've tried different options on the menus and I don't see an option to add script.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Hi,
You can also search for Scritp Editor in Adobe Designer Help, you will get the info about script editor.
All the best -
Chalukya.
Views
Replies
Total Likes
Thank you so very much, it works like a charm.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies