I left some comments about the code itself on the PR
When I click this link, it opens the PDF in the browser. No download. Are you seeing something different?
I’m using Chrome on macOS. We’re not running this d-pdf-previews theme component on Meta.