aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfschneider <florian.schneider@student.tugraz.at>2015-08-06 14:40:23 +0200
committerfschneider <florian.schneider@student.tugraz.at>2015-08-06 14:40:23 +0200
commit0cfb3fe13a2a5280112bf942b4e0b12e5abee1c9 (patch)
tree83ac99c3b55e751fc03cad948b18990ae79e264d
parent1e4a0af51ff6b90cca57791b698433d36febb2a5 (diff)
downloadpdf-as-4-0cfb3fe13a2a5280112bf942b4e0b12e5abee1c9.tar.gz
pdf-as-4-0cfb3fe13a2a5280112bf942b4e0b12e5abee1c9.tar.bz2
pdf-as-4-0cfb3fe13a2a5280112bf942b4e0b12e5abee1c9.zip
Preparing for Bootstrap
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/dragNdrop.js4
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.css5
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.html1
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js3
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp8
-rw-r--r--releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.tarbin31406080 -> 31406080 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/apache-tomcat-8.0.23-pdf-as-web-4.0.8-SNAPSHOT.zipbin29609629 -> 29609588 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.tarbin13148160 -> 13148160 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-cli-4.0.8-SNAPSHOT.zipbin12181608 -> 12181450 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-common-4.0.8-SNAPSHOT.jarbin57893 -> 57893 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-legacy-4.0.8-SNAPSHOT.jarbin57802 -> 57801 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.jarbin1445580 -> 1445529 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.tarbin7802880 -> 7802880 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-lib-4.0.8-SNAPSHOT.zipbin7141701 -> 7141540 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-moa-4.0.8-SNAPSHOT.jarbin104790 -> 104790 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-pdfbox-4.0.8-SNAPSHOT.jarbin115314 -> 115312 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-4.0.8-SNAPSHOT.warbin20835246 -> 20835260 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.jarbin8320 -> 8319 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.tarbin27330560 -> 27330560 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-db-4.0.8-SNAPSHOT.zipbin24959469 -> 24959310 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.jarbin5426 -> 5424 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.tarbin460800 -> 460800 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-statistic-api-4.0.8-SNAPSHOT.zipbin412397 -> 412396 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.jarbin18695 -> 18693 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.tarbin552960 -> 552960 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/pdf-as-web-status-4.0.8-SNAPSHOT.zipbin499509 -> 499507 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/sigs-pades-4.0.8-SNAPSHOT.jarbin9618 -> 9617 bytes
-rw-r--r--releases/4.0.8-SNAPSHOT/sigs-pkcs7detached-4.0.8-SNAPSHOT.jarbin5589 -> 5588 bytes
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ