Preliminary attachments support
Added a partial Filespec support Added getAttachments in API Added a new attachments view in UI (with a new icon by @shorlander)
This commit is contained in:
parent
4379f16346
commit
25ee0e8572
13 changed files with 292 additions and 38 deletions
|
@ -66,6 +66,13 @@ var DownloadManager = (function DownloadManagerClosure() {
|
|||
download(url + '#pdfjs.action=download', filename);
|
||||
},
|
||||
|
||||
downloadData: function DownloadManager_downloadData(data, filename,
|
||||
contentType) {
|
||||
|
||||
var blobUrl = PDFJS.createObjectURL(data, contentType);
|
||||
download(blobUrl, filename);
|
||||
},
|
||||
|
||||
download: function DownloadManager_download(blob, url, filename) {
|
||||
if (!URL) {
|
||||
// URL.createObjectURL is not supported
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue