Revert "333"
This reverts commit 48d1f12e. # Conflicts: # public/files/js/interfaceGdrive.js
Showing
1 changed file
with
4 additions
and
7 deletions
| ... | @@ -727,18 +727,15 @@ function finalPdf(data, json) { | ... | @@ -727,18 +727,15 @@ function finalPdf(data, json) { |
| 727 | 727 | ||
| 728 | 728 | ||
| 729 | var strVar2 = "" | 729 | var strVar2 = "" |
| 730 | strVar2 += '<div id="seepdf" style=" width:' + imageWidth + 'px; height: ' + imageHeight + 'px; overflow: hidden;" ></div>'; | 730 | |
| 731 | strVar2 += '<div id="seepdf" style=" width:' + imageWidth + 'px; height: ' + imageHeight + 'px; overflow: hidden;" ><object style="overflow-x: hidden; overflow-y: hidden; width: ' + imageWidth + 'px; height: ' + imageHeight + 'px; min-height: 101%; -ms-overflow-style: none |;" data=' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '#page=' + setpage + '&toolbar=0&navpanes=0&;scrollbar=0&statusbar=0" width="' + imageWidth + '" height="' + imageHeight + '" type="application/pdf" id="pdfloaded"></object></div>'; | ||
| 732 | |||
| 731 | document.getElementById('pdfPreviewInner').innerHTML = strVar2; | 733 | document.getElementById('pdfPreviewInner').innerHTML = strVar2; |
| 732 | 734 | ||
| 733 | var strVar3 = '<div id="button"><input id="editMe" type="submit" value="Edit"><a href="' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '" download="' + json[0].file + '" ><input id="downloadMe" type="submit" value="Download"></a> </div>'; | 735 | var strVar3 = '<div id="button"><input id="editMe" type="submit" value="Edit"><a href="' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '" download="' + json[0].file + '" ><input id="downloadMe" type="submit" value="Download"></a> </div>'; |
| 734 | document.getElementById('controls').innerHTML = strVar3; | 736 | document.getElementById('controls').innerHTML = strVar3; |
| 735 | 737 | ||
| 736 | var options = { | 738 | |
| 737 | height: imageHeight+"px", | ||
| 738 | width: imageWidth+"px", | ||
| 739 | pdfOpenParams: { scrollbar: '0', toolbar: '0', statusbar: '0', messages: '0', navpanes: '0', view: 'FitV', page: + setpage } | ||
| 740 | }; | ||
| 741 | PDFObject.embed(pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file, "#seepdf", options); | ||
| 742 | 739 | ||
| 743 | $.LoadingOverlaySetup({ | 740 | $.LoadingOverlaySetup({ |
| 744 | color: "rgba(0, 0, 0, 0.9)", | 741 | color: "rgba(0, 0, 0, 0.9)", | ... | ... |
-
Please register or sign in to post a comment