Giter VIP home page Giter VIP logo

foxit-pdf-sdk-web-demo's People

Contributors

christinawu007 avatar ihossa avatar lazio avatar linc0803 avatar luonan-chen avatar nengxingxu avatar olegka28 avatar qiyu-tao avatar schemex avatar tianwei-wu-foxit avatar xuexing-he avatar y1j2x34 avatar ying-lin666 avatar yjx419 avatar yongliang-huang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

foxit-pdf-sdk-web-demo's Issues

Uncaught TypeError: UIExtension.PDFUI is not a constructor

Hi! Not sure if this is the best place to ask this.

I'm trying to implement foxit sdk in a Ruby on Rails application. I'll omit details specific to the platform and only posting relevant part of the code:

app/javascript/foxit.js

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

const pdfui = new UIExtension.PDFUI({
    viewerOptions: {
        libPath: './@foxitsoftware/foxit-pdf-sdk-for-web-library-full/lib',
        jr: {
            licenseKey: "licenseKeyFromTrial",
            licenseSN: "licenseSNFromTrial",
            enginePath: './@foxitsoftware/foxit-pdf-sdk-for-web-library-full/lib/jr-engine/gsdk',
            fontPath: 'http://webpdf.foxitsoftware.com/webfonts/'
        }
    },
    renderTo: '#pdf-ui',
});


I'm getting the following error:
`Uncaught TypeError: UIExtension.PDFUI is not a constructor`

No idea why and not sure how to start debugging. What could cause the issue? I tried to track it down to UIExtension.full.js and is coming from that file, but it's hard to understand what can cause the issue. Any suggestion?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.