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 fileSpecDict = new Dict(
      fileSpecDict.set("Type", Name.get("Filespec")
      fileSpecDict.set("Desc", ""
      fileSpecDict.set("EF", embeddedFileDict
      fileSpecDict.set("UF", "Test.txt"
      const fileAttachmentRef = Ref.get(20, 0
      const fileAttachmentDict = new Dict(
      fileAttachmentDict.set("Type", Name.get("Annot")
      fileAttachmentDict.set("Subtype", Name.get("FileAttachment")
      fileAttachmentDict.set("FS", fileSpecRef
      fileAttachmentDict.set("T", "Topic"
      fileAttachmentDict.set("Contents", "Test.txt"
      const xref = new XRefMock([
        { ref: fileStreamRef, data: fileStreamDict },
        { ref: fileSpecRef, data: fileSpecDict },
        { ref: fileAttachmentRef, data: fileAttachmentDict },
      ]
      embeddedFileDict.assignXref(xref
      fileSpecDict.assignXref(xref
      fileAttachmentDict.assignXref(xref
      const { data } = await AnnotationFactory.create(
        xref,
        fileAttachmentRef,
        pdfManagerMock,
        idFactoryMock
      
      expect(data.annotationType).toEqual(AnnotationType.FILEATTACHMENT
      expect(data.file.filename).toEqual("Test.txt"
      expect(data.file.content).toEqual(stringToBytes("Test attachment")
    }