It may be possible to modify the downloadPdf() function of the PdfDownloader class in such a way as to have the possibility of adding a parameter that allows adding one or more headers to the request?
Thus obtaining the possibility of downloading from end-points that are protected by the authorization of the Bearer Token.