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("Subtype", Name.get("Link")
          annotationDict.set("A", actionDict
          const annotationRef = Ref.get(46, 0
          const xref = new XRefMock([
            { ref: annotationRef, data: annotationDict },
          ]
          return AnnotationFactory.create(
            xref,
            annotationRef,
            pdfManagerMock,
            idFactoryMock
          ).then(({ data }) => {
            expect(data.annotationType).toEqual(AnnotationType.LINK
            expect(data.url).toEqual(expectedUrl
            expect(data.unsafeUrl).toEqual(expectedUnsafeUrl
            expect(data.dest).toBeUndefined(
            expect(data.newWindow).toEqual(expectedNewWindow
          }
        }
        
        const annotation1 = checkJsAction({
          jsEntry: 'function someFun() { return "qwerty"; } someFun(',
          expectedUrl: undefined,
          expectedUnsafeUrl: undefined,
          expectedNewWindow: undefined,
        }
        
        const annotation2 = checkJsAction({
          jsEntry: "window.open('http://www.example.com/test.pdf')",
          expectedUrl: new URL("http://www.example.com/test.pdf").href,