questions regarding print event and save event

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
amrkamal63
User
Posts: 5
Joined: Mon Jul 29, 2019 11:21 am

questions regarding print event and save event

Post by amrkamal63 » Wed Sep 11, 2019 10:56 am

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

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13548
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: questions regarding print event and save event

Post by Tracker Supp-Stefan » Wed Sep 11, 2019 11:30 am

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

amrkamal63
User
Posts: 5
Joined: Mon Jul 29, 2019 11:21 am

Re: questions regarding print event and save event

Post by amrkamal63 » Thu Sep 12, 2019 11:28 am

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 .

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13548
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: questions regarding print event and save event

Post by Tracker Supp-Stefan » Thu Sep 12, 2019 12:14 pm

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

Post Reply