Based on open issues (including your own) and pull requests, it appears that anvithks/hugo-embed-pdf-shortcode is not actively maintained.
You are encountering this issue.
To fix, change the first line of the shortcode to:
<script src= '/js/pdf-js/build/pdf.js'></script>