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 
}
    it(
      "should handle, and get fallback IDs for, annotations that are not " +
        "indirect objects (issue 7569)",
      async function () {
        const annotationDict = new Dict(
        annotationDict.set("Type", Name.get("Annot")
        annotationDict.set("Subtype", Name.get("Link")
        const xref = new XRefMock(
        const idFactory = createIdFactory( 0
        const annotation1 = AnnotationFactory.create(
          xref,
          annotationDict,
          pdfManagerMock,
          idFactory
        ).then(({ data }) => {
          expect(data.annotationType).toEqual(AnnotationType.LINK
          expect(data.id).toEqual("annot_p0_1"
        }
        const annotation2 = AnnotationFactory.create(
          xref,
          annotationDict,
          pdfManagerMock,
          idFactory
        ).then(({ data }) => {
          expect(data.annotationType).toEqual(AnnotationType.LINK
          expect(data.id).toEqual("annot_p0_2"
        }
        await Promise.all([annotation1, annotation2]
      }