#68 move example in demo folder

This commit is contained in:
Eugenio Romano
2016-05-24 12:59:00 +01:00
parent a95db8daf2
commit 61614a1a98
15 changed files with 225 additions and 348 deletions

View File

@@ -6,7 +6,7 @@
<div class="mdl-layout__header-row">
<!-- File Title -->
<span class="mdl-layout-title">{{nameFile}}</span>
<span class="mdl-layout-title">{{urlFile}}</span>
<!-- pagination toolbar start -->
<div id="viewer-toolbar-pagination">

View File

@@ -39,10 +39,9 @@ export class ViewerComponent {
totalPages: number;
ngOnInit() {
console.log('A.urlFile ' + this.urlFile);
console.log('urlFile ' + this.urlFile);
this.urlFile = this.urlFile ? this.urlFile : 'localTestFile.pdf';
this.nameFile = PDFJS.getFilenameFromUrl(this.loadFile);
this.nameFile = PDFJS.getFilenameFromUrl(this.urlFile);
PDFJS.getDocument(this.urlFile).then((pdf) => {
this.currentPdf = pdf;