We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
I doubt that you can disable these popups: Acrobat is not designed as a server appliation. Even with all the automation tools, it expecrts that somebody sits in front of the screen and takes care of error messages and warnings. If you need something that works in a "lights out" mode, you need to look for a different solution.
Very true, although unfortunately Adobe's server applications are also not designed as server applications, so that's what I got. The warnings don't require any input besides clicking 'ok', so they could just as well be written to the log. Someone in 2016 said they had found the solution, but did not post what it was, so I have a sliver of hope.
You can try placing your code within a try-catch clause. If the error is catchable (not all are) then you could just output it to the console and move on.
Thanks try; however I don't think it would work - saveAs is atomic from the user point of view, so it would require modifying Adobe's code to catch the warning at the required place. I am going to check if it's possible to modify the included JS libraries, although I'm not hopeful.
(also, your user name checks out 🙂
Have you tried it? Also, can you share a sample file with us? There might be other ways of detecting this issue, such as trying to read the contents of the page, or something like that.
Just did, no dice. I checked the files open by the AcrobatDC process for anything interesting, no dice either. My action, aside from path setting, is only two doc.saveAs(), which leave little room for clever error management.
I've also found out that save as text and export to text give different results. I have no idea WTF is going on in Acrobat's internals.