Home  »  CodeLibrariesSnippetsTechnologyTools   »   Pdf.js CDN URL Example

Pdf.js CDN URL Example

Posted: December 17, 2022 | by Michael Bright

This is the pdf.js CDN URL.

https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.6.347/pdf.min.js

This is how to use pdf.js with CDN.

<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.6.347/pdf.min.js" integrity="sha512-Z8CqofpIcnJN80feS2uccz+pXWgZzeKxDsDNMD/dJ6997/LSRY+W4NmEt9acwR+Gt9OHN0kkI1CTianCwoqcjQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

Using jsdelivr.

https://cdn.jsdelivr.net/npm/[email protected]/lib/index.min.js

Here is the HTML code.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/index.min.js"></script>

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.