mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
PDF --> PDFJS, global wrapper named
This commit is contained in:
parent
135af5df13
commit
1d4e3025b6
5 changed files with 12 additions and 12 deletions
|
@ -7,11 +7,11 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
PDF.getPdf('helloworld.pdf', function getPdfHelloWorld(data) {
|
||||
PDFJS.getPdf('helloworld.pdf', function getPdfHelloWorld(data) {
|
||||
//
|
||||
// Instantiate PDFDoc with PDF data
|
||||
//
|
||||
var pdf = new PDF.PDFDoc(data);
|
||||
var pdf = new PDFJS.PDFDoc(data);
|
||||
var page = pdf.getPage(1);
|
||||
var scale = 1.5;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue