The test file at https://github.com/mozilla/pdf.js/blob/master/test/pdfs/annotation-choice-widget.pdf contains listboxes, which are not rendered correctly when printed right now. These kinds of fields are made by https://github.com/mozilla/pdf.js/blob/master/src/display/annotation_layer.js#L672-L678.

/cc @calixteman 
additionalActionsDict.set("D", dDictRef
      additionalActionsDict.set("X", xDictRef
      textWidgetDict.set("AA", additionalActionsDict
      partialEvaluator.xref = xref;
      const annotation = await AnnotationFactory.create(
        xref,
        textWidgetRef,
        pdfManagerMock,
        idFactoryMock
      
      const fieldObject = await annotation.getFieldObject(
      const actions = fieldObject.actions;
      expect(actions["Mouse Enter"]).toEqual(["hello()"]
      expect(actions["Mouse Exit"]).toEqual([
        "world()",
        "olleh()",
        "foo()",
        "dlrow()",
        "oof()",
      ]
      expect(actions["Mouse Down"]).toEqual(["bar()"]
    }
    it("should save Japanese text", async function () {
      textWidgetDict.get("DR").get("Font").set("Goth", gothRefObj.ref
      textWidgetDict.set("DA", "/Goth 5 Tf"
      const textWidgetRef = Ref.get(123, 0
      const xref = new XRefMock([
        { ref: textWidgetRef, data: textWidgetDict },
        gothRefObj,
      ]