mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-03 14:59:19 +02:00
- files_reader v1.1, now supports PDF, see CHANGELOG.md and README.md
for change information
This commit is contained in:
parent
f909cd0f1b
commit
6a0d095d45
29 changed files with 1178 additions and 366 deletions
|
@ -25,6 +25,8 @@ document.onreadystatechange = function () {
|
|||
options.session.basePath = $session.data('basepath');
|
||||
options.session.downloadLink = $session.data('downloadlink');
|
||||
|
||||
console.log(options.session.basePath);
|
||||
|
||||
|
||||
/* functions return jquery promises */
|
||||
options.session.getPreference = function(name) {
|
||||
|
@ -142,6 +144,7 @@ document.onreadystatechange = function () {
|
|||
// start pdf.js renderer
|
||||
function renderPdf(file, options) {
|
||||
PDFJS.filePath = "vendor/pdfjs/";
|
||||
PDFJS.imageResourcesPath = "vendor/pdfjs/css/images/";
|
||||
PDFJS.workerSrc = options.session.basePath + 'vendor/pdfjs/lib/pdf.worker.js';
|
||||
|
||||
var reader = pdfReader(file, options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue