Disable Message Box

The PDF-XChange Viewer for End Users
+++ FREE +++

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

wilbertom
User
Posts: 1
Joined: Thu Nov 16, 2023 8:20 am

Disable Message Box

Post by wilbertom »

Hello, I'm having an issue where before printing a PDF it pops up a message box. Decoding the PDF I see that it has code to do this:

<event activity="prePrint" ref="$host" name="event__prePrint"
><script contentType="application/x-javascript"
>xfa.host.messageBox("Don't forget to sign!");
</script></event>

Is there a way I can disable these message boxes? I do have Javascript disabled so it must not count as javascript?
Willy Van Nuffel
User
Posts: 2397
Joined: Wed Jan 18, 2006 12:10 pm

Re: Disable Message Box

Post by Willy Van Nuffel »

I do not know how to disable it, but you can try to remove the script:

File > Document Properties > Actions > Before printing > Clear > Yes > OK

Keep us posted if this works.

Kind regards.

Willy
>
PDF-XChange Editor - Document actions.png
>
EDIT: I just see that this question was posted in the PDF-XChange Viewer forum.
My solution here above is only possible when using PDF-XChange Editor (successor of PDF-XChange Viewer):
https://www.pdf-xchange.com/product/pdf-xchange-editor
You do not have the required permissions to view the files attached to this post.
User avatar
Dimitar - Tracker Supp
Site Admin
Posts: 1797
Joined: Mon Jan 15, 2018 9:01 am

Re: Disable Message Box

Post by Dimitar - Tracker Supp »

Hi all,

Removing the script will be the best approach, otherwise you have to disable JavaScrip support completely, which will affect the rest of your files as well.

Regards.