Socket
Book a DemoInstallSign in
Socket

@foxitsoftware/foxit-pdf-sdk-for-web-library

Package Overview
Dependencies
Maintainers
20
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foxitsoftware/foxit-pdf-sdk-for-web-library

Foxit pdf sdk for web.

11.0.3
latest
npmnpm
Version published
Weekly downloads
1.4K
-10.33%
Maintainers
20
Weekly downloads
 
Created
Source

Foxit PDF SDK for web

Install

npm install -S @foxitsoftware/foxit-pdf-sdk-for-web-library

Integration (Based on webpack & babel)

Simplified webpack configuration for copy resources example:

const path = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');

const distPath = path.resolve('dist');
const libraryModulePath = path.resolve('node_modules/@foxitsoftware/foxit-pdf-sdk-for-web-library');
const libPath = path.resolve(libraryModulePath, '');

module.exports = {
    mode: 'development',
    plugins: [
        new CopyWebpackPlugin({
            patterns:[{
                from: libPath,
                to: path.resolve(distPath, 'lib'),
                force: true
            }]
        }),
    ]
};

Now you can use it in your code like following:

import * as UIExtension from '@foxitsoftware/foxit-pdf-sdk-for-web-library/lib/UIExtension.full.js';
import '@foxitsoftware/foxit-pdf-sdk-for-web-library/lib/UIExtension.vw.css';

const pdfui = new UIExtension.PDFUI({
    viewerOptions: {
        libPath: '/lib',
        jr: {
            licenseKey: license.licenseKey,
            licenseSN: license.licenseSN,
            enginePath: './jr-engine/gsdk',
            fontPath: 'http://webpdf.foxitsoftware.com/webfonts/'
        }
    },
    renderTo: '#pdf-ui',
    addons: [
        '/lib/uix-addons/path-objects'
    ]
});

pdfui.openPDFByHttpRangeRequest({
    range:{
        url:'/path/to/pdffile.pdf',
    }
},{fileName:'PDF file name.pdf'});

Examples can be edited on CodeSandbox.

API Reference

See API Reference

Developer guide

See Developer guide

FAQs

Package last updated on 15 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.