Skip to content

Getting Started ​

This page covers how to obtain, integrate, and run Foxit PDF SDK for Web. Choose a layer in SDK architecture, then use Quick integration below for Full UI, Basic Viewer, or framework setups.

Download the SDK ​

Sample projects ​

  • Local samples: See Examples to build and run sample projects locally and get started with integration.
  • Online demo: Try features in the online demo without deploying anything.

Quick integration ​

Package layout ​

Package changes ​

Before version 10.0, Foxit PDF SDK for Web shipped three package variants:

  • Standard package without fonts (FoxitPDFSDKForWeb_x_xxx_NoFonts.zip):
    • Contains no font resources—for teams that already have fonts or rely on online fonts only.
    • Smaller download size.
  • Standard package (FoxitPDFSDKForWeb_x_xxx.zip):
    • Includes full font resources for immediate use without extra setup.
    • For teams that do not need a custom font setup and accept a larger package.
  • Full package (FoxitPDFSDKForWeb_x_xxx_Full.zip):
    • Adds document compare, advanced editing, dynamic XFA, and other advanced capabilities on top of the standard package.
    • For teams that need those advanced features.

Important update:

Starting with version 10.0, the product ships a single consolidated package:

  • Full package (FoxitPDFSDKForWeb_x_xxx.zip):
    • Includes everything from the previous full package plus 3D support.
    • Feature modules load according to your license, so you enable only what you need.
    • This change delivers broader capability with a simpler package model.

Directory structure ​

Folder / fileDescription
docsAPI reference and the Foxit PDF SDK for Web developer guide.
Note: The HTML developer guide is built with VuePress and cannot be opened by double-clicking a file. Start an HTTP server and open it in a browser. Some interactive samples require WebPDFJRWorker.js and an HTTP-served environment.
examplesDemos and sample projects that show how to use Foxit PDF SDK for Web.
externalFont resources.
libCore Foxit PDF SDK for Web libraries.
serverhttp-server and Node.js scripts used by server-side features in the web viewer.
legal.txtLegal and copyright information.
package.jsonProject metadata.

The lib folder contains:

Folder / fileDescription
jr-engineClient-side rendering engine.
localesSupported languages; resource files are grouped by locale tag.
PDFViewCtrlPDFViewCtrl add-on plugins.
stampsStamp resources—images and templates.
assetsTemplate assets for document compare (included in the full package only).
uix-addonsUIExtension add-on plugins.
PDFViewCtrl.cssCSS for PDFViewCtrl viewer UI.
PDFViewCtrl.full.jsFull PDFViewCtrl viewer script (includes dependencies).
PDFViewCtrl.jsPDFViewCtrl viewer script without bundled third-party libraries.
PDFViewCtrl.vendor.jsThird-party libraries used by PDFViewCtrl. See Scripts and third-party libraries.
preload-jr-worker.jsWorker script that preloads the JS engine to speed up viewer startup.
UIExtension.cssDefault UIExtension CSS.
UIExtension.dark-variable.cssCSS variables for dark theme.
UIExtension.vw.cssCSS that uses vmin units.
UIExtension.full.jsFull UIExtension viewer script (includes dependencies).
UIExtension.jsUIExtension viewer script without bundled third-party libraries.
UIExtension.vendor.jsThird-party libraries used by UIExtension. See Scripts and third-party libraries.
WebPDFJRWorker.jsWeb Worker script that runs the client-side rendering engine.
WebPDFSRWorker.jsWeb Worker script that runs the server-side rendering engine.
*.d.tsTypeScript declaration files for JavaScript APIs—IDE hints, autocomplete, and compile-time type checks.

From 10.0, the front-end rendering engine loads modules on demand; the main module is gsdk.wasm. See the module list under Front-end rendering engine · Engine modules.

PDFViewCtrl.full.js is composed of PDFViewCtrl.vendor.js and PDFViewCtrl.js; UIExtension.full.js works the same way. From 12.0 the package no longer ships separate *.polyfills.js files. If your project already includes those third-party libraries, see Scripts and third-party libraries.