galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.14k stars 169 forks source link

createReader return empty object #152

Closed nnnikolay closed 7 years ago

nnnikolay commented 7 years ago

HI, thanks for your library.

I'm trying to start using it, and now I stuck in the reading part. I' have following code (taken from documentation)

var hummus = require('hummus');
var pdfReader = hummus.createReader('./data/input.pdf');
console.log(pdfReader);

but in a terminal, I can see an empty object only PDFReader {}

Therefore, none of mentioned in docs methods are available :( am I doing something wrong?

Thanks

nnnikolay commented 7 years ago

I just took example from your example repo, and it works :)

galkahana commented 7 years ago

fyi. most native objects will return an empty object. most hummus objects are native. wiki should provide you with methods documentation (well, you can always dig into the code but it's less advisable if you are less coherent with C++).