foxitsoftware / foxit-pdf-sdk-web-demo Goto Github PK
View Code? Open in Web Editor NEWFoxit PDF SDK Demo Viewer Project - Development
Foxit PDF SDK Demo Viewer Project - Development
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.