PDFFileElement: verify event

Works in all major browsers
Since July 2026

WebPDF works in Chrome and Edge 125, Firefox 153 and Safari 18, on desktop and mobile, and in every later version: the oldest versions its PDF.js build supports, which already have every platform feature WebPDF needs. Since July 2026, that is every major browser.

The verify event of the PDFFileElement interface fires when a <pdf-file> has checked its digital signatures.

This event is not cancelable and bubbles. It is also composed, so it crosses shadow root boundaries unless composed is false.

Syntax

Use the event name in methods like addEventListener(). WebPDF elements have no onverify event handler property.

js
addEventListener("verify", (event) => { })

With event:prefix=type on the <script>, the file or the page, the event is named pdf-file-verify instead.

Event type

A CustomEvent. Inherits from Event.

EventCustomEvent

Event properties

This interface also inherits properties from its parent, Event.

detail

An object:

signatures

The rows, as PDFFileElement.verify() returns them: one per signature, newest first.

status

The worst status, as PDFFileElement.signed gives it, or null when the file is not signed.

Examples

Showing the status

js
const file = document.querySelector("pdf-file");
file.addEventListener("verify", (event) => {
  console.log(event.detail.status); // "verified"
});

Specifications

Not part of any specification. <pdf-file> and <pdf-page> are autonomous custom elements defined by WebPDF.pro. It implements:

Specification
ISO 32000-2:2020 (PDF 2.0)
# 12.8 Digital signatures

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
verify event
1251251531111812515383182712518
  • verify event · Chrome, Edge, Firefox, Opera, Safari, Chrome Android, Firefox for Android, Opera Android, Safari on iOS, Samsung Internet, WebView Android, WebView on iOS: Secure contexts (HTTPS) only; elsewhere every signature verifies as unknown.

Legend

Full support
See implementation notes.

See also