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

Getting "Segmentation Fault" issue for some PDF's Nodejs #292

Open vvsanil opened 6 years ago

vvsanil commented 6 years ago

Hi,

When we try to createFormXObjectFromPDFPage from the PDF page then we are getting the "Segmentation Fault" error and server is crashing. We are unable to catch this exception in javascript.

try{
    var formObjectId = cpyCxt.createFormXObjectFromPDFPage(i, hummus.ePDFPageBoxMediaBox);
} catch(e){
     console.log("Exception" +e);
}  

Thanks, Anil.