mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Implement support for FileAttachment annotations
This commit is contained in:
parent
e9a1a47d28
commit
6a33dfd13a
10 changed files with 127 additions and 9 deletions
|
@ -15,7 +15,8 @@
|
|||
/*jshint globalstrict: false */
|
||||
/* globals PDFJS, PDFViewer, PDFPageView, TextLayerBuilder, PDFLinkService,
|
||||
DefaultTextLayerFactory, AnnotationLayerBuilder, PDFHistory,
|
||||
DefaultAnnotationLayerFactory, getFileName, ProgressBar */
|
||||
DefaultAnnotationLayerFactory, getFileName, DownloadManager,
|
||||
ProgressBar */
|
||||
|
||||
// Initializing PDFJS global object (if still undefined)
|
||||
if (typeof PDFJS === 'undefined') {
|
||||
|
@ -29,6 +30,7 @@ if (typeof PDFJS === 'undefined') {
|
|||
//#include pdf_link_service.js
|
||||
//#include pdf_viewer.js
|
||||
//#include pdf_history.js
|
||||
//#include download_manager.js
|
||||
|
||||
PDFJS.PDFViewer = PDFViewer;
|
||||
PDFJS.PDFPageView = PDFPageView;
|
||||
|
@ -40,5 +42,6 @@ if (typeof PDFJS === 'undefined') {
|
|||
PDFJS.PDFHistory = PDFHistory;
|
||||
|
||||
PDFJS.getFileName = getFileName;
|
||||
PDFJS.DownloadManager = DownloadManager;
|
||||
PDFJS.ProgressBar = ProgressBar;
|
||||
}).call((typeof window === 'undefined') ? this : window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue