#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

@@ -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;