MCPcopy Create free account
hub / github.com/LibPDF-js/core / hasOwnerAccess

Method hasOwnerAccess

src/api/pdf.ts:870–878  ·  view source on GitHub ↗

* Check if the document was authenticated with owner-level access. * * Owner access grants all permissions regardless of permission flags. * Returns true for unencrypted documents. * * @returns true if owner access is available

()

Source from the content-addressed store, hash-verified

868 * @returns true if owner access is available
869 */
870 hasOwnerAccess(): boolean {
871 if (!this.isEncrypted) {
872 return true;
873 }
874
875 const handler = this.ctx.info.securityHandler;
876
877 return handler?.hasOwnerAccess ?? false;
878 }
879
880 /**
881 * Attempt to authenticate with a password.

Callers 5

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected