pankajr141 / pdf2jpg

Utility to convert PDF into JPG files
51 stars 21 forks source link

Returning non-zero exit status 1 #8

Closed DyfanJones closed 4 years ago

DyfanJones commented 4 years ago

Hi @pankajr141 ,

I am currently coming across an unusual error when running your package on AWS Lambda. For 99.9% of the time it successfully converts pdfs to jpg, which is amazing! However for the odd one or two occasions it returns a limited error message:

Command '['java', '-jar', '/opt/python/lib/python3.6/site-packages/pdf2jpg/pdf2jpg.jar', '-i', '/tmp/my_pdf.pdf', '-o', '/tmp/', '-d', '300', '-p', 'ALL']' returned non-zero exit status 1.

Would you know why this is happening? Any help around this would be much appreciated. Sadly I can't share the pdf as it is linked to my company.

pankajr141 commented 4 years ago

The issue is related to aws lambda and not the utility, as it mentioned above that code works 99.9 % of time.