w3nl / ppt-png

Convert ppt to png
MIT License
45 stars 7 forks source link

No use of this NPM. #42

Closed gopal-augment closed 3 years ago

gopal-augment commented 3 years ago

Really your documentation doesn't work with NodeJs. Waste of time.

w3nl commented 3 years ago

Sorry, i have to write better documentation indeed. Work in progress. But it is just created for Node.JS. Or the documentation or the error's aren't clear enough. See also this example: https://github.com/w3nl/ppt-png/blob/master/test/test2.js or the tests: https://github.com/w3nl/ppt-png/blob/master/src/__tests__/converter.js

gopal-augment commented 3 years ago

I used the same way you mentioned in that link. I got error

create is not a function of undefined

w3nl commented 3 years ago

Do you have more information where it happened? (file + line number) Its now to generic for me.

gopal-augment commented 3 years ago
const converter = Converter.create({        // **<= this line**
    files:  ['test/OPW 733 Tienduizend redenen.ppt'],
    output: 'output/'
});

const result = converter.convert();
w3nl commented 3 years ago

How do you import Converter? import Converter from 'ppt-png'?

gopal-augment commented 3 years ago

I just pasted your code and tried. Changed the file paths.

gopal-augment commented 3 years ago

Is this cleared?

w3nl commented 3 years ago

I have update the readme with a little more information. Do you need more information, or can you use the package now?