Issue while processing multiple page pdf
<--- Last few GCs --->
11144 ms: Scavenge 969.5 (1008.3) -> 969.5 (1008.3) MB, 0.3 / 0 ms (+ 2.2 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep]. 11256 ms: Mark-sweep 969.5 (1008.3) -> 585.1 (625.8) MB, 112.6 / 0 ms (+ 2.4 ms in 2 steps since start of marking, biggest step 2.2 ms) [last resort gc]. 11329 ms: Mark-sweep 585.1 (625.8) -> 585.1 (623.8) MB, 72.9 / 0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x298005e3ac1 <JS Object>
2: /* anonymous / [/Documents/Nodedemo/pdf2image/node_modules/pdf2img/lib/pdf2img.js:~51] [pc=0x279bdc3b082](this=0x29800504101
FATAL ERROR: invalid array length Allocation failed - process out of memory Abort trap: 6
I fixed this with this pull request : @ #19 There was a bug on the page list construct