Page 1 of 1

questions regarding print event and save event

Posted: Wed Sep 11, 2019 10:56 am
by amrkamal63
Hi, everyone
I have a question regarding before print event and before save event , is it possible to abort saving or printing based on a condition
from those events with javascript code if so how to do this ?
please give an example
Br

Re: questions regarding print event and save event

Posted: Wed Sep 11, 2019 11:30 am
by Tracker Supp-Stefan
Hello amrkamal63,

You have posted in the End user Editor forums.
I am afraid that you can not control print events this way.
If you are interested in automating some operation - please tell us more about it, and we will see if anything can be done with our end user products, or whether you will need our SDK packages to achieve it!

Regards,
Stefan

Re: questions regarding print event and save event

Posted: Thu Sep 12, 2019 11:28 am
by amrkamal63
which forum should I ask my previous question , I need to implement my idea in javascript code only (from the pdf-exchange editor plus) if that is possible without any help of sdk .

Re: questions regarding print event and save event

Posted: Thu Sep 12, 2019 12:14 pm
by Tracker Supp-Stefan
Hello amrkamal63,

As stated on page 326 of this document:
https://www.adobe.com/content/dam/acom/ ... erence.pdf

Non-interactive printing can only be executed during batch, console, and menu events. Printing is made non-interactive by setting bUI to false or by setting the interactive property to silent.

So please take a look at the JS reference and see if you can make it work. I am not sure you can interrupt printing though and can only detect the event without the possibility to interrupt it.

Regards,
Stefan