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(annotation.modificationDate).toEqual(null
    }
    it("should set and get flags", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setFlags(13
      expect(annotation.hasFlag(AnnotationFlag.INVISIBLE)).toEqual(true
      expect(annotation.hasFlag(AnnotationFlag.NOZOOM)).toEqual(true
      expect(annotation.hasFlag(AnnotationFlag.PRINT)).toEqual(true
      expect(annotation.hasFlag(AnnotationFlag.READONLY)).toEqual(false
      expect(annotation.hasFlag(AnnotationFlag.HIDDEN)).toEqual(false
    }
    it("should be viewable and not printable by default", function () {
      const annotation = new Annotation({ dict, ref }
      expect(annotation.viewable).toEqual(true
      expect(annotation.printable).toEqual(false
    }
    it("should set and get a valid rectangle", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setRectangle([117, 694, 164.298, 720]
      expect(annotation.rectangle).toEqual([117, 694, 164.298, 720]
    }
    it("should not set and get an invalid rectangle", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setRectangle([117, 694, 164.298]
      expect(annotation.rectangle).toEqual([0, 0, 0, 0]
    }
    it("should reject a color if it is not an array", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setColor("red"
      expect(annotation.color).toEqual(new Uint8ClampedArray([0, 0, 0])