How to catch a generated pdf doc at runtime? (javascript)
Hi,
i use Acrobat XI/Windows.- the methods used are app.trustedFunction.
The script generates a pdf doc through the Adobe PDF printer to be used subsequently in the same script, however, despite seeing how it has been stored in the local folder, at runtime app.openDoc () does not recognize it as [doc object]: JavaScript Debugger console returns "Invalid location. The file or folder does not exist".
The Adobe PDF printer settings allow you to display or not the printed pdf document. I have tried both ways. When it shows it, I try to select it with app.activeDocs, but it doesn't detect it either.
I am being forced to break into two action button scripts with user intervention (so the script works correctly), when I want the process to be completely silent and unattended.
I hope my question catches your attention.
Thank you.
