diff --git a/src/app/components/eo4geo-footer/eo4geo-footer.component.html b/src/app/components/eo4geo-footer/eo4geo-footer.component.html index 0e2eed3..736963c 100644 --- a/src/app/components/eo4geo-footer/eo4geo-footer.component.html +++ b/src/app/components/eo4geo-footer/eo4geo-footer.component.html @@ -2,10 +2,10 @@ EO4GEO Tools EO4GEO - - Release Notes v1.0 + User Manual + Release Notes v1.01 Contact + Privacy Policy - + \ No newline at end of file diff --git a/src/app/components/release-notes/release-notes.component.html b/src/app/components/release-notes/release-notes.component.html index fd23b63..7a5d126 100644 --- a/src/app/components/release-notes/release-notes.component.html +++ b/src/app/components/release-notes/release-notes.component.html @@ -10,9 +10,14 @@ -
-
Disclaimer: you are using a prototype release of the BoK Annotation Tool. This tool is currently under - development - and we are still experimenting with functionality and user interface. Bugs may occur. Thank you for your - patience. -
-
diff --git a/src/app/views/newannotation/newannotation.component.ts b/src/app/views/newannotation/newannotation.component.ts index 4fc40d7..2d4b0f8 100644 --- a/src/app/views/newannotation/newannotation.component.ts +++ b/src/app/views/newannotation/newannotation.component.ts @@ -22,7 +22,8 @@ import * as jsPDF from 'jspdf'; // import * as jspdf from 'parse-pdf'; -import * as pdfjs from 'pdfjs-dist'; +import * as pdfjs from 'pdfjs-dist/es5/build/pdf'; +import { pdfjsworker } from 'pdfjs-dist/es5/build/pdf.worker.entry'; import { BokService } from '../../services/bok.service'; import { LoginComponent } from '../login/login.component'; import { OtherService } from '../../services/other.service'; @@ -251,6 +252,7 @@ export class NewannotationComponent implements OnInit { } uploadFile1(file) { + pdfjs.GlobalWorkerOptions.workerSrc = pdfjsworker; const filePath = 'other/custom-' + encodeURI(file.name); const task = this.storage.upload(filePath, file); this.errorFile1 = false; @@ -262,7 +264,7 @@ export class NewannotationComponent implements OnInit { const ref = this.storage.ref(filePath); ref.getDownloadURL().subscribe(url => { // get pdf document from url - pdfjs.getDocument(url).then(pdfDoc_ => { + pdfjs.getDocument(url).promise.then(pdfDoc_ => { const pdfDoc = pdfDoc_; // get metadata from pdf document pdfDoc.getMetadata().then(metadataObject => {