mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Using pdfjs-dist as a library for b2g viewer.
This commit is contained in:
parent
1da0b3a363
commit
1b847df2f3
8 changed files with 400 additions and 240 deletions
|
@ -17,7 +17,7 @@
|
|||
/*jshint globalstrict: false */
|
||||
/* globals PDFJS, PDFViewer, PDFPageView, TextLayerBuilder, PDFLinkService,
|
||||
DefaultTextLayerFactory, AnnotationsLayerBuilder, PDFHistory,
|
||||
DefaultAnnotationsLayerFactory, getFileName */
|
||||
DefaultAnnotationsLayerFactory, getFileName, ProgressBar */
|
||||
|
||||
// Initializing PDFJS global object (if still undefined)
|
||||
if (typeof PDFJS === 'undefined') {
|
||||
|
@ -42,4 +42,5 @@ if (typeof PDFJS === 'undefined') {
|
|||
PDFJS.PDFHistory = PDFHistory;
|
||||
|
||||
PDFJS.getFileName = getFileName;
|
||||
PDFJS.ProgressBar = ProgressBar;
|
||||
}).call((typeof window === 'undefined') ? this : window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue