setDocument(pdfDocument) {
    if (this.pdfDocument) {
      this.#reset();
      this.#updateUI();
    }
    if (!pdfDocument) {
      return;
    }
    this.pdfDocument = pdfDocument;

    this._dataAvailableCapability.resolve();
  }
Set a reference to the PDF document in order to populate the dialog fields
with the document properties. Note that the dialog will contain no
information if this method is not called.

@param {PDFDocumentProxy} pdfDocument - A reference to the PDF document.