Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5
Commits
69511d90
Commit
69511d90
authored
Jan 16, 2018
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_dms] allow pdf js to return empty pdf
and fix pdf worker path
parent
82681bee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/pdf_js/pdf.gadget.js.js
...emplateItem/portal_skins/erp5_dms/pdf_js/pdf.gadget.js.js
+3
-1
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/pdf_js/viewer.js.js
...kinTemplateItem/portal_skins/erp5_dms/pdf_js/viewer.js.js
+1
-1
No files found.
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/pdf_js/pdf.gadget.js.js
View file @
69511d90
...
@@ -36,7 +36,9 @@
...
@@ -36,7 +36,9 @@
var
self
=
this
;
var
self
=
this
;
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
PDFViewerApplication
.
pdfDocument
.
getData
();
if
(
PDFViewerApplication
.
pdfDocument
)
{
return
PDFViewerApplication
.
pdfDocument
.
getData
();
}
})
})
.
push
(
function
(
data
)
{
.
push
(
function
(
data
)
{
var
blob
=
PDFJS
.
createBlob
(
data
,
"
application/pdf
"
);
var
blob
=
PDFJS
.
createBlob
(
data
,
"
application/pdf
"
);
...
...
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/pdf_js/viewer.js.js
View file @
69511d90
...
@@ -35,7 +35,7 @@ var DISABLE_AUTO_FETCH_LOADING_BAR_TIMEOUT = 25000;
...
@@ -35,7 +35,7 @@ var DISABLE_AUTO_FETCH_LOADING_BAR_TIMEOUT = 25000;
function
configure
(
PDFJS
)
{
function
configure
(
PDFJS
)
{
PDFJS
.
imageResourcesPath
=
'
./images/
'
;
PDFJS
.
imageResourcesPath
=
'
./images/
'
;
PDFJS
.
workerSrc
=
'
./
pdf_js/
build/pdf.worker.js
'
;
PDFJS
.
workerSrc
=
'
./build/pdf.worker.js
'
;
PDFJS
.
cMapUrl
=
'
./web/cmaps/
'
;
PDFJS
.
cMapUrl
=
'
./web/cmaps/
'
;
PDFJS
.
cMapPacked
=
true
;
PDFJS
.
cMapPacked
=
true
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment