It would help if you contacted the developers of PDF Expert and asked them to add basic generic support for this. More details here.
In the meantime, here’s a script that works in my testing. It won’t be as reliable as PDF Expert adding scripting support to their app. Add the two scripts in the Script Editor in Hook.
I don’t have a copy of Notability so I can’t check if that app has enough access.