sheetjs / js-ppt Goto Github PK
View Code? Open in Web Editor NEWPure JS PowerPoint 97-2003 (PPT) Parser
License: Other
Pure JS PowerPoint 97-2003 (PPT) Parser
License: Other
I have a .ppt
that's been sitting in the textract repo for a bit that I used for testing graceful error handling. In my case the error was textract does not currently extract files of type [[ application/vnd.ms-powerpoint ]]
. Obviously that'll be changing.
https://github.com/dbashford/textract/blob/master/test/files/MxAgCrProd.ppt
This file throws up.
ppt MxAgCrProd.ppt
/Users/dbashford/.nvm/v0.10.12/lib/node_modules/ppt/ppt.js:623
if(persist) throw "unexpected second RT_PersistDirectoryAtom";
^
unexpected second RT_PersistDirectoryAtom
c:\Users\...\AppData\Roaming\npm\node_modules\ppt\node_modules\cfb\cfb.js:76
if(m !== hexstr) throw fld + 'Expected ' + hexstr + ' saw ' + m;
^
Header Signature: Expected d0cf11e0a1b11ae1 saw 504b030414000600
After converting to old .ppt
type 2003 year old, throw ne type of error:
$ ppt test2.ppt
c:\Users\...\AppData\Roaming\npm\node_modules\ppt\ppt.js:10
var parsenoop = function(blob, length) { throw new Error("n"); };
^
Error: n
at Object.parsenoop [as f] (c:\Users\...\AppData\Roaming\npm\node_mo
dules\ppt\ppt.js:10:48)
at recordhopper (c:\Users\...\AppData\Roaming\npm\node_modules\ppt\p
pt.js:22:15)
at Object.parse_OfficeArtClientTextbox [as f] (c:\Users\...\AppData\
Roaming\npm\node_modules\ppt\ppt.js:497:2)
at recordhopper (c:\Users\...\AppData\Roaming\npm\node_modules\ppt\p
pt.js:22:15)
at Object.parse_OfficeArtSpContainer [as f] (c:\Users\...\AppData\Ro
aming\npm\node_modules\ppt\ppt.js:65:2)
at recordhopper (c:\Users\...\AppData\Roaming\npm\node_modules\ppt\p
pt.js:22:15)
at Object.parse_OfficeArtSpgrContainer [as f] (c:\Users\...\AppData\
Roaming\npm\node_modules\ppt\ppt.js:85:2)
at recordhopper (c:\Users\...\AppData\Roaming\npm\node_modules\ppt\p
pt.js:22:15)
at Object.parse_OfficeArtDgContainer [as f] (c:\Users\...\AppData\Ro
aming\npm\node_modules\ppt\ppt.js:51:2)
at recordhopper (c:\Users\...\AppData\Roaming\npm\node_modules\ppt\p
pt.js:22:15)
Could you help me please with this issue! I really need this module, it is very important for me!
When parsing ppt/pptx file, how can we get images from a file?
What will be as result JSON or .txt or .js file or value will be returned to CMD?
var custream = ppt.find('Current User');
^
TypeError: ppt.find is not a function
OS Windows 8.1
Instead of npm install ppt
should be written npm install ppt -g
because otherwise you will have error like. In other words it must be global module.
$ ppt
sh: ppt: command not found
I see you are console.log
ing all the output. It would be nice if there was a way to call, for instance, readFile
(or a new function) directly and get a string back and save the trouble of using a child process.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.