This repository was archived by the owner on Feb 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 88 "react-scripts" : " 2.1.1"
99 },
1010 "devDependencies" : {
11- "@pdftron/webviewer-downloader" : " ^1.0.4 " ,
11+ "@pdftron/webviewer-downloader" : " ^1.0.7 " ,
1212 "btoa" : " ^1.2.1" ,
1313 "download" : " ^7.1.0" ,
1414 "fs-extra" : " ^7.0.1"
1919 "test" : " react-scripts test" ,
2020 "eject" : " react-scripts eject" ,
2121 "postinstall" : " npx @pdftron/webviewer-downloader" ,
22- "add-license" : " npx @pdftron/webviewer-downloader --license" ,
23- "download-webviewer" : " npx @pdftron/webviewer-downloader --webviewer"
22+ "download-webviewer" : " npx @pdftron/webviewer-downloader"
2423 },
2524 "eslintConfig" : {
2625 "extends" : " react-app"
Original file line number Diff line number Diff line change 2020 Learn how to configure a non-root public URL by running `npm run build`.
2121 -->
2222 < title > React Sample</ title >
23- < script src ="%PUBLIC_URL%/license-key.js "> </ script >
2423 < script src ="%PUBLIC_URL%/lib/webviewer.min.js "> </ script >
2524 </ head >
2625 < body >
Original file line number Diff line number Diff line change @@ -10,11 +10,8 @@ class WebViewer extends Component {
1010 componentDidMount ( ) {
1111 this . myWebViewer = new window . PDFTron . WebViewer ( {
1212 path : 'lib' ,
13- initialDoc : 'files/webviewer-demo-annotated.pdf' ,
14- l : atob ( window . licenseKey )
13+ initialDoc : 'files/webviewer-demo-annotated.pdf'
1514 } , this . viewer . current ) ;
16- this . viewer . current . addEventListener ( 'ready' , this . readyHandler ) ;
17- this . viewer . current . addEventListener ( 'documentLoaded' , this . documentLoadedHandler ) ;
1815 }
1916
2017 getInstance ( ) {
You can’t perform that action at this time.
0 commit comments