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 { data } = await AnnotationFactory.create(
          xref,
          annotationRef,
          pdfManager,
          idFactoryMock
        
        expect(data.annotationType).toEqual(AnnotationType.LINK
        expect(data.url).toEqual(
          new URL("http://www.example.com/test/pdfs/Part II/Part II.pdf").href
        
        expect(data.unsafeUrl).toEqual("Part II/Part II.pdf"
        expect(data.dest).toBeUndefined(
        expect(data.newWindow).toEqual(true
      }
    
    it(
      "should recover valid URLs from JavaScript actions having certain " +
        "white-listed formats",
      async function () {
        function checkJsAction(params) {
          const jsEntry = params.jsEntry;
          const expectedUrl = params.expectedUrl;
          const expectedUnsafeUrl = params.expectedUnsafeUrl;
          const expectedNewWindow = params.expectedNewWindow;
          const actionDict = new Dict(
          actionDict.set("Type", Name.get("Action")
          actionDict.set("S", Name.get("JavaScript")
          actionDict.set("JS", jsEntry
          const annotationDict = new Dict(
          annotationDict.set("Type", Name.get("Annot")