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 
const textWidgetRef = Ref.get(43, 0
      const xref = new XRefMock([{ ref: textWidgetRef, data: textWidgetDict }]
      const { data } = await AnnotationFactory.create(
        xref,
        textWidgetRef,
        pdfManagerMock,
        idFactoryMock
      
      expect(data.annotationType).toEqual(AnnotationType.WIDGET
      expect(data.textAlignment).toEqual(null
      expect(data.maxLen).toEqual(null
      expect(data.readOnly).toEqual(false
      expect(data.hidden).toEqual(false
      expect(data.multiLine).toEqual(false
      expect(data.comb).toEqual(false
    }
    it("should set valid text alignment, maximum length and flags", async function () {
      textWidgetDict.set("Q", 1
      textWidgetDict.set("MaxLen", 20
      textWidgetDict.set(
        "Ff",
        AnnotationFieldFlag.READONLY + AnnotationFieldFlag.MULTILINE
      
      const textWidgetRef = Ref.get(84, 0
      const xref = new XRefMock([{ ref: textWidgetRef, data: textWidgetDict }]
      const { data } = await AnnotationFactory.create(
        xref,
        textWidgetRef,
        pdfManagerMock,
        idFactoryMock