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 
annotationDict.set("Type", Name.get("Annot")
      annotationDict.set("Subtype", Name.get("Text")
      annotationDict.set("T", "ParentTitle"
      annotationDict.set("Contents", "ParentText"
      annotationDict.set("CreationDate", "D:20180423"
      annotationDict.set("M", "D:20190423"
      annotationDict.set("C", [0, 0, 1]
      const popupRef = Ref.get(820, 0
      const popupDict = new Dict(
      popupDict.set("Type", Name.get("Annot")
      popupDict.set("Subtype", Name.get("Popup")
      popupDict.set("Parent", annotationRef
      annotationDict.set("Popup", popupRef
      const replyRef = Ref.get(821, 0
      const replyDict = new Dict(
      replyDict.set("Type", Name.get("Annot")
      replyDict.set("Subtype", Name.get("Text")
      replyDict.set("IRT", annotationRef
      replyDict.set("RT", Name.get("Group")
      replyDict.set("T", "ReplyTitle"
      replyDict.set("Contents", "ReplyText"
      replyDict.set("CreationDate", "D:20180523"
      replyDict.set("M", "D:20190523"
      replyDict.set("C", [0.4]
      const xref = new XRefMock([
        { ref: annotationRef, data: annotationDict },
        { ref: popupRef, data: popupDict },
        { ref: replyRef, data: replyDict },
      ]
      annotationDict.assignXref(xref