You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when I try to use the pdf-powerpoint
TypeError: pdfFiles.map is not a function
at Powerpoint._convertWithGhostScript (D:\Angular2-Training\Day5\App\server
node_modules\pdf-powerpoint\lib\powerpoint.js:293:26)
at _getStagingDirectory.then (D:\Angular2-Training\Day5\App\server\node_modu
les\pdf-powerpoint\lib\powerpoint.js:145:33)
at tryCatcher (D:\Angular2-Training\Day5\App\server\node_modules\bluebird\js
\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\Angular2-Training\Day5\App\server\n
ode_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\Angular2-Training\Day5\App\server\node_modules
\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\Angular2-Training\Day5\App\server\node_module
s\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\Angular2-Training\Day5\App\server\node_module
s\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (D:\Angular2-Training\Day5\App\server\node_modules\blue
bird\js\release\async.js:133:16)
at Async._drainQueues (D:\Angular2-Training\Day5\App\server\node_modules\blu
ebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (D:\Angular2-Training\Day5\App\server\node_mo
dules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:781:20)
at tryOnImmediate (timers.js:743:5)
at processImmediate [as _immediateCallback] (timers.js:714:5)
The text was updated successfully, but these errors were encountered:
After have read more accurately the doc and noticed the 'map' suffix on the error message, I finally figured out that the input must be an array of pdf file path, even if you have only one file to convert. When I specify an array of pdf file path, it works like a charm.
Hey guys,
I'm getting this error when I try to use the pdf-powerpoint
TypeError: pdfFiles.map is not a function
at Powerpoint._convertWithGhostScript (D:\Angular2-Training\Day5\App\server
node_modules\pdf-powerpoint\lib\powerpoint.js:293:26)
at _getStagingDirectory.then (D:\Angular2-Training\Day5\App\server\node_modu
les\pdf-powerpoint\lib\powerpoint.js:145:33)
at tryCatcher (D:\Angular2-Training\Day5\App\server\node_modules\bluebird\js
\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\Angular2-Training\Day5\App\server\n
ode_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\Angular2-Training\Day5\App\server\node_modules
\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\Angular2-Training\Day5\App\server\node_module
s\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\Angular2-Training\Day5\App\server\node_module
s\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (D:\Angular2-Training\Day5\App\server\node_modules\blue
bird\js\release\async.js:133:16)
at Async._drainQueues (D:\Angular2-Training\Day5\App\server\node_modules\blu
ebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (D:\Angular2-Training\Day5\App\server\node_mo
dules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:781:20)
at tryOnImmediate (timers.js:743:5)
at processImmediate [as _immediateCallback] (timers.js:714:5)
The text was updated successfully, but these errors were encountered: