0

I tried using ghostscript to convert pdf to image in a cloud function, and have been running into this spawn EACCES error for ages now and I still can't figure it out.

Im following this link Cloud Functions for Firebase - Converting PDF to image

But i keep getting this error. EACEES error

Any knows anything about this? Thanks in advance

KenS
  • 30,202
  • 3
  • 34
  • 51
Don-Ricardo
  • 213
  • 4
  • 12
  • i ll recommend that you use some other npm package for conversion. these commandline utilites in firebase are not easily debuggable and may break when you have users online. so searh for packages on npm – Harkal Apr 19 '20 at 01:20
  • The problem is that almost every npm package out there for converting pdfs to image has ghostscript dependency. – Don-Ricardo Apr 19 '20 at 09:39
  • still it ll help you because they maintain their code and if you find a lib having more than 1k weekly installs. you can try that – Harkal Apr 19 '20 at 12:01

0 Answers0