Socket
Book a DemoInstallSign in
Socket

@foxitsoftware/addon-loader

Package Overview
Dependencies
Maintainers
16
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foxitsoftware/addon-loader

UIExtension(Foxit PDF SDK for Web)'s addon loader module for webpack.

0.7.4
latest
npmnpm
Version published
Maintainers
16
Created
Source

addon-loader

A loader for webpack to preprocess Foxit PDF SDK for Web UIExtension addons.

Getting Started

To begin, you'll need to install our addon-loader:

npm i -D @foxitsoftware/addon-loader

Configure webpack.config.js

module.exports = {
    module: {
        rules: [{
            test: /\.css$/,
            loader: ['style-loader', 'css-loader'] // resolve css resource in addon
        },{
            test: /addon.info.json/,
            use: [{
                loader: 'babel-loader',
                options: {
                    "presets": ["@babel/preset-env"]
                }
            }, '@foxitsoftware/addon-loader'],
            type: 'javascript/auto'
        }]
    },
   externals: ['PDFViewCtrl']
};

Import in index.js

import HContinuousAddon from 'path/to/sdk/lib/uix-addons/h-continuous/addon.info.json';
import UIExtension from 'path/to/sdk/lib/UIExtension.full.js';

new UIExtension.PDFUI({
    addons: [
        HContinuousAddon
    ],
    // ignored other irrelevant options
})

FAQs

Package last updated on 02 Aug 2023

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.