Am trying to run pdf.js example on localhost and after downloading i did
make server
But when i tried to run the examples bundled with the download i got this error
missing variable name
var in = i * n;
http://localhost/pdf.js/src/function.js
Line 174
The PDF file is successfully fetched
GET http://localhost/pdf.js/examples/helloworld/helloworld.pdf 200 OK 210ms
Is there anything i am missing as a requirement?
Yes. Replace tne
invariable name with another one, such asinput.inis a special keyword in JavaScript.'name' in object.The previous will only be true if the
'name'property exists on the givenobject.for (name in obj).