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 ​
- Get the SDK: Request a trial or download instructions from the Foxit Developer Hub, or contact Foxit technical support or your sales representative for the build that fits your project.
- npm: @foxitsoftware/foxit-pdf-sdk-for-web-library
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 / file | Description |
|---|---|
| docs | API 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. |
| examples | Demos and sample projects that show how to use Foxit PDF SDK for Web. |
| external | Font resources. |
| lib | Core Foxit PDF SDK for Web libraries. |
| server | http-server and Node.js scripts used by server-side features in the web viewer. |
| legal.txt | Legal and copyright information. |
| package.json | Project metadata. |
The lib folder contains:
| Folder / file | Description |
|---|---|
| jr-engine | Client-side rendering engine. |
| locales | Supported languages; resource files are grouped by locale tag. |
| PDFViewCtrl | PDFViewCtrl add-on plugins. |
| stamps | Stamp resources—images and templates. |
| assets | Template assets for document compare (included in the full package only). |
| uix-addons | UIExtension add-on plugins. |
| PDFViewCtrl.css | CSS for PDFViewCtrl viewer UI. |
| PDFViewCtrl.full.js | Full PDFViewCtrl viewer script (includes dependencies). |
| PDFViewCtrl.js | PDFViewCtrl viewer script without bundled third-party libraries. |
| PDFViewCtrl.vendor.js | Third-party libraries used by PDFViewCtrl. See Scripts and third-party libraries. |
| preload-jr-worker.js | Worker script that preloads the JS engine to speed up viewer startup. |
| UIExtension.css | Default UIExtension CSS. |
| UIExtension.dark-variable.css | CSS variables for dark theme. |
| UIExtension.vw.css | CSS that uses vmin units. |
| UIExtension.full.js | Full UIExtension viewer script (includes dependencies). |
| UIExtension.js | UIExtension viewer script without bundled third-party libraries. |
| UIExtension.vendor.js | Third-party libraries used by UIExtension. See Scripts and third-party libraries. |
| WebPDFJRWorker.js | Web Worker script that runs the client-side rendering engine. |
| WebPDFSRWorker.js | Web Worker script that runs the server-side rendering engine. |
| *.d.ts | TypeScript 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.