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 
partialEvaluator.xref = xref;
      const task = new WorkerTask("test save"
      const annotation = await AnnotationFactory.create(
        xref,
        textWidgetRef,
        pdfManagerMock,
        idFactoryMock
      
      const annotationStorage = new Map(
      annotationStorage.set(annotation.data.id, {
        value: "こんにちは世界の",
      }
      const data = await annotation.save(
        partialEvaluator,
        task,
        annotationStorage
      
      const utf16String =
        "\x30\x53\x30\x93\x30\x6b\x30\x61\x30\x6f\x4e\x16\x75\x4c\x30\x6e";
      expect(data.length).toEqual(2
      const [oldData, newData] = data;
      expect(oldData.ref).toEqual(Ref.get(123, 0)
      expect(newData.ref).toEqual(Ref.get(2, 0)
      oldData.data = oldData.data.replace(/\(D:\d+\)/, "(date)"
      expect(oldData.data).toEqual(
        "123 0 obj\n" +
          "<< /Type /Annot /Subtype /Widget /FT /Tx /DA (/Goth 5 Tf) /DR " +
          "<< /Font << /Helv 314 0 R /Goth 159 0 R>>>> /Rect [0 0 32 10] " +
          `/V (\xfe\xff${utf16String}) /AP << /N 2 0 R>> /M (date)>>\nendobj\n`