Page 1 of 1

Disable Message Box

Posted: Thu Nov 16, 2023 8:28 am
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?

Re: Disable Message Box

Posted: Thu Nov 16, 2023 9:05 am
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

Re: Disable Message Box

Posted: Thu Nov 16, 2023 2:50 pm
by Dimitar - PDF-XChange
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.