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 
expect(oldData.data).toEqual(
        "123 0 obj\n" +
          "<< /Type /Annot /Subtype /Widget /FT /Tx /DA (/Helv 5 Tf) /DR " +
          "<< /Font << /Helv 314 0 R>>>> /Rect [0 0 32 10] " +
          "/V (hello world) /AP << /N 2 0 R>> /M (date)>>\nendobj\n"
      
      expect(newData.data).toEqual(
        "2 0 obj\n<< /Length 77 /Subtype /Form /Resources " +
          "<< /Font << /Helv 314 0 R>>>> /BBox [0 0 32 10]>> stream\n" +
          "/Tx BMC q BT /Helv 5 Tf 1 0 0 1 0 0 Tm 2.00 3.04 Td (hello world) Tj " +
          "ET Q EMC\nendstream\nendobj\n"
      
    }
    it("should get field object for usage in JS sandbox", async function () {
      const textWidgetRef = Ref.get(123, 0
      const xDictRef = Ref.get(141, 0
      const dDictRef = Ref.get(262, 0
      const next0Ref = Ref.get(314, 0
      const next1Ref = Ref.get(271, 0
      const next2Ref = Ref.get(577, 0
      const next00Ref = Ref.get(413, 0
      const xDict = new Dict(
      const dDict = new Dict(
      const next0Dict = new Dict(
      const next1Dict = new Dict(
      const next2Dict = new Dict(
      const next00Dict = new Dict(
      const xref = new XRefMock([
        { ref: textWidgetRef, data: textWidgetDict },
        { ref: xDictRef, data: xDict },