PDF action resolve a uniform resource identifier (web link).
It is an Immutable.Record and thus
can be updated using
set(key, value), for example:
A URI action contains an URI. When executing this annotation, we use
window.open to create a
new browser tab. We also clear the opener as a security measurement to avoid the target page to
have access to your PDF state.
const newWindow = window.open(action.uri, "_blank");
newWindow.opener = null;
Learn more about the security problems when using
_blank in this article from JitBit.
Please refer to the individual browser documentations for a lists of supported URI protocols. The
most used protocols (
mailto) are supported in all supported browsers.