Attach (recommended) or Link to PDF file here: https://mozilla.github.io/pdf.js/legacy/web/viewer.html

Configuration:
- Web browser and its version: Google 版本 104.0.5112.79（正式版本） （64 位）
- Operating system and its version: linux
- PDF.js version: v3.0.279
- Is a browser extension:

Steps to reproduce the problem:
1. add annotation on page 1
2. add annotation on page 11
3. print

What is the expected behavior? (add screenshot)
print with annotation
What went wrong? (add screenshot)
report error：
editor.js:298 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'viewportBaseDimensions')
    at InkEditor.getRect (editor.js:298:53)
    at InkEditor.serialize (ink.js:1065:23)
    at get serializable [as serializable] (annotation_storage.js:168:47)
    at new PrintAnnotationStorage (annotation_storage.js:204:49)
    at get print [as print] (annotation_storage.js:153:12)
    at app.js:1683:52
    at async Promise.all (index 1)
![image](https://user-images.githubusercontent.com/55518632/205529553-de262fa9-392c-4c43-8fd9-1edae67b8997.png)

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
https://mozilla.github.io/pdf.js/legacy/web/viewer.html
this.eventBus = options.eventBus;
    this.linkService = options.linkService || new SimpleLinkService();
    this.downloadManager = options.downloadManager || null;
    this.findController = options.findController || null;
    this._scriptingManager = options.scriptingManager || null;
    this.removePageBorders = options.removePageBorders || false;
    this.textLayerMode = options.textLayerMode ?? TextLayerMode.ENABLE;
    this.#annotationMode =
      options.annotationMode ?? AnnotationMode.ENABLE_FORMS;
    this.#annotationEditorMode =
      options.annotationEditorMode ?? AnnotationEditorType.NONE;
    this.imageResourcesPath = options.imageResourcesPath || "";
    this.enablePrintAutoRotate = options.enablePrintAutoRotate || false;
    if (
      typeof PDFJSDev === "undefined" ||
      PDFJSDev.test("!PRODUCTION || GENERIC")
    ) {
      this.renderer = options.renderer || RendererType.CANVAS;
    }
    this.useOnlyCssZoom = options.useOnlyCssZoom || false;
    this.isOffscreenCanvasSupported =
      options.isOffscreenCanvasSupported ?? true;
    this.maxCanvasPixels = options.maxCanvasPixels;
    this.l10n = options.l10n || NullL10n;
    this.#enablePermissions = options.enablePermissions || false;
    this.pageColors = options.pageColors || null;
    if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) {
      if (
        this.pageColors &&
        !(