Skip to content

Scripts and third-party libraries ​

For integration, load PDFViewCtrl.full.js or UIExtension.full.js. Those files already include the third-party libraries the SDK uses.

If your app already includes the same libraries, load only PDFViewCtrl.js or UIExtension.js (without bundled third-party libraries). Do not also load *.full.js or *.vendor.js. Those libraries must be version-compatible with the SDK, loaded before the SDK scripts, and exposed globally in the way the SDK expects.

*.full.js equals the vendor script plus the library script without third-party dependencies:

PDFViewCtrl.vendor.js + PDFViewCtrl.js = PDFViewCtrl.full.js

UIExtension.vendor.js + UIExtension.js = UIExtension.full.js

From 12.0, the package no longer ships PDFViewCtrl.polyfills.js or UIExtension.polyfills.js.

PDFViewCtrl ​

html
<script src="../FoxitPDFSDKForWeb/lib/PDFViewCtrl.full.js"></script>

Equivalent to:

html
<script src="../FoxitPDFSDKForWeb/lib/PDFViewCtrl.vendor.js"></script>
<script src="../FoxitPDFSDKForWeb/lib/PDFViewCtrl.js"></script>

PDFViewCtrl.vendor.js includes:

  • jquery
  • i18next
  • i18next-chained-backend
  • i18next-localstorage-backend
  • i18next-xhr-backend
  • jquery-contextmenu
  • dialog-polyfill
  • hammerjs
  • eventemitter3

UIExtension ​

html
<script src="../FoxitPDFSDKForWeb/lib/UIExtension.full.js"></script>

Equivalent to:

html
<script src="../FoxitPDFSDKForWeb/lib/UIExtension.vendor.js"></script>
<script src="../FoxitPDFSDKForWeb/lib/UIExtension.js"></script>

UIExtension.vendor.js includes:

  • jquery
  • i18next
  • i18next-chained-backend
  • i18next-localstorage-backend
  • i18next-xhr-backend
  • dialog-polyfill
  • hammerjs
  • eventemitter3
  • file-saver