diff options
author | fschneider <florian.schneider@student.tugraz.at> | 2015-08-06 14:40:23 +0200 |
---|---|---|
committer | fschneider <florian.schneider@student.tugraz.at> | 2015-08-06 14:40:23 +0200 |
commit | 0cfb3fe13a2a5280112bf942b4e0b12e5abee1c9 (patch) | |
tree | 83ac99c3b55e751fc03cad948b18990ae79e264d | |
parent | 1e4a0af51ff6b90cca57791b698433d36febb2a5 (diff) | |
download | pdf-as-4-0cfb3fe13a2a5280112bf942b4e0b12e5abee1c9.tar.gz pdf-as-4-0cfb3fe13a2a5280112bf942b4e0b12e5abee1c9.tar.bz2 pdf-as-4-0cfb3fe13a2a5280112bf942b4e0b12e5abee1c9.zip |
Preparing for Bootstrap
28 files changed, 14 insertions, 7 deletions
diff --git a/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js b/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js index c3f340d6..4b605d76 100644 --- a/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js +++ b/pdf-as-web/src/main/webapp/assets/js/dragNdrop.js @@ -50,11 +50,11 @@ function registerEventListeners() { if(files == null || files.length === 0) { return; } - else if(files[0].name.indexOf(".pdf") < 0) + /* else if(files[0].name.indexOf(".pdf") < 0) { window.alert("The file type must be PDF"); return; - } + } */ // the pdf viewer will handle this file = files[0]; previewFile(); diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.css b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.css index de21f494..84e0f073 100644 --- a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.css +++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.css @@ -1067,6 +1067,11 @@ html[dir='rtl'] .toolbarButton.pageDown::before { content: url(images/signature-icon.png); } +.toolbarButton.addPage::before, +.secondaryToolbarButton.addPage::before { + content: url(images/signature-icon.png); +} + .toolbarButton.delSignature::before, .secondaryToolbarButton.delSignature::before { content: url(images/document_del_signature.png); diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.html b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.html index c6cf575f..1f8a6a44 100644 --- a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.html +++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.html @@ -225,6 +225,7 @@ http://sourceforge.net/adobe/cmap/wiki/License/ </button> <!-- ADDED --> + <button id="placeSignature" class="toolbarButton placeSignature hiddenLargeView" title="Place Signature on current Page" tabindex="30" data-l10n-id="place_signature"> <span data-l10n-id="place_signature_label">Place Signature</span> </button> diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js index 129823ff..6a2cc14d 100644 --- a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js +++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js @@ -6680,6 +6680,7 @@ function webViewerInitialized() { var fileInput = document.createElement('input'); fileInput.id = 'fileInput'; + fileInput.accept = 'application/pdf' fileInput.className = 'fileInput'; fileInput.setAttribute('type', 'file'); fileInput.oncontextmenu = noContextMenuHandler; @@ -6861,7 +6862,7 @@ function webViewerInitialized() { document.getElementById('openFile').addEventListener('click', SecondaryToolbar.openFileClick.bind(SecondaryToolbar)); - + document.getElementById('print').addEventListener('click', SecondaryToolbar.printClick.bind(SecondaryToolbar)); diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp index abc2ece1..e567e217 100644 --- a/pdf-as-web/src/main/webapp/index.jsp +++ b/pdf-as-web/src/main/webapp/index.jsp @@ -16,17 +16,17 @@ </header> <div id="sidebar"> - <div id="fileSelector" class="container"> + <!-- <div id="fileSelector" class="container"> <h3 class="center">File Selector</h3> - <!--<div id="dropzone" class="center"> + <div id="dropzone" class="center"> Drag and Drop your Document here ... </div> <div id="traditionalUpload"> <p>... or select File here</p> <input type="file" name="pdf-file" id="pdf-file" accept="application/pdf"> - </div> --> <!-- Care: id and name must be unique! --> + </div> - </div> + </div> --> <div id="signMethod" class="container"> <h3 class="center">Sign Method</h3> diff --git a/releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.tar b/releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.tar Binary files differindex f8276788..97119ec8 100644 --- a/releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.tar +++ b/releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.tar diff --git a/releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.zip b/releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.zip Binary files differindex 7735c265..c8725216 100644 --- a/releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.zip +++ b/releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.zip diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.tar b/releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.tar Binary files differindex 45f3b25e..676c52ec 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.tar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.tar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.zip b/releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.zip Binary files differindex ac40efbf..0cffd5a4 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.zip +++ b/releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.zip diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-common-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/pdf-as-common-4.0.8-SNAPSHOT.jar Binary files differindex cc78700e..df1a5fa9 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-common-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-common-4.0.8-SNAPSHOT.jar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-legacy-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/pdf-as-legacy-4.0.8-SNAPSHOT.jar Binary files differindex 80b684fd..4db5843a 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-legacy-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-legacy-4.0.8-SNAPSHOT.jar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.jar Binary files differindex b4edd70a..17faba3a 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.jar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.tar b/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.tar Binary files differindex 2bfc83c8..64a98d4a 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.tar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.tar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.zip b/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.zip Binary files differindex 3805aab9..e5429416 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.zip +++ b/releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.zip diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-moa-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/pdf-as-moa-4.0.8-SNAPSHOT.jar Binary files differindex b5a1c6f8..09630d4e 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-moa-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-moa-4.0.8-SNAPSHOT.jar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-pdfbox-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/pdf-as-pdfbox-4.0.8-SNAPSHOT.jar Binary files differindex 8ccbf095..d457c408 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-pdfbox-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-pdfbox-4.0.8-SNAPSHOT.jar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-4.0.8-SNAPSHOT.war b/releases/4.0.8-SNAPSHOT/pdf-as-web-4.0.8-SNAPSHOT.war Binary files differindex 82a56802..1db76ab6 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-4.0.8-SNAPSHOT.war +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-4.0.8-SNAPSHOT.war diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.jar Binary files differindex cc55e4b2..1871d351 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.jar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.tar b/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.tar Binary files differindex de4677a1..cc575df1 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.tar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.tar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.zip b/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.zip Binary files differindex bb7d3f1b..46c8c2ad 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.zip +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.zip diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.jar Binary files differindex 18870bed..6d9ccca9 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.jar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.tar b/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.tar Binary files differindex a6a5f1b0..b566ceda 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.tar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.tar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.zip b/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.zip Binary files differindex 6df0e29f..8209441d 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.zip +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.zip diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.jar Binary files differindex 913d2f7e..b6ca3b6d 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.jar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.tar b/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.tar Binary files differindex edf5007a..1a7e18ae 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.tar +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.tar diff --git a/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.zip b/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.zip Binary files differindex 6c54036e..9ee8285a 100644 --- a/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.zip +++ b/releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.zip diff --git a/releases/4.0.8-SNAPSHOT/sigs-pades-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/sigs-pades-4.0.8-SNAPSHOT.jar Binary files differindex 00fbb9c3..19ebcb8d 100644 --- a/releases/4.0.8-SNAPSHOT/sigs-pades-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/sigs-pades-4.0.8-SNAPSHOT.jar diff --git a/releases/4.0.8-SNAPSHOT/sigs-pkcs7detached-4.0.8-SNAPSHOT.jar b/releases/4.0.8-SNAPSHOT/sigs-pkcs7detached-4.0.8-SNAPSHOT.jar Binary files differindex ea6fad7b..8b6dafe4 100644 --- a/releases/4.0.8-SNAPSHOT/sigs-pkcs7detached-4.0.8-SNAPSHOT.jar +++ b/releases/4.0.8-SNAPSHOT/sigs-pkcs7detached-4.0.8-SNAPSHOT.jar |