mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Replaces text selection example
This commit is contained in:
parent
2565e627a3
commit
513a3d8c91
10 changed files with 119 additions and 175 deletions
|
@ -15,7 +15,9 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
/*jshint globalstrict: false */
|
||||
/* globals PDFJS, PDFViewer */
|
||||
/* globals PDFJS, PDFViewer, PDFPageView, TextLayerBuilder,
|
||||
DefaultTextLayerFactory, AnnotationsLayerBuilder,
|
||||
DefaultAnnotationsLayerFactory */
|
||||
|
||||
// Initializing PDFJS global object (if still undefined)
|
||||
if (typeof PDFJS === 'undefined') {
|
||||
|
@ -29,4 +31,9 @@ if (typeof PDFJS === 'undefined') {
|
|||
//#include pdf_viewer.js
|
||||
|
||||
PDFJS.PDFViewer = PDFViewer;
|
||||
PDFJS.PDFPageView = PDFPageView;
|
||||
PDFJS.TextLayerBuilder = TextLayerBuilder;
|
||||
PDFJS.DefaultTextLayerFactory = DefaultTextLayerFactory;
|
||||
PDFJS.AnnotationsLayerBuilder = AnnotationsLayerBuilder;
|
||||
PDFJS.DefaultAnnotationsLayerFactory = DefaultAnnotationsLayerFactory;
|
||||
}).call((typeof window === 'undefined') ? this : window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue