jeylabs / aws-lambda-poppler-layer

AWS Lambda Poppler Layer
54 stars 28 forks source link

Can't find pdfinfo #7

Open BrianSHenderson opened 3 years ago

BrianSHenderson commented 3 years ago

I'm getting the following error:

/bin/sh: /opt/bin/pdfinfo: No such file or directory

I've created a custom layer through the AWS console. I'm using the Serverless framework to deploy my Lambda functions but I'm not having any success.

The code I'm using is:

  const toRun = `/opt/bin/`
  const { exec } = require("child_process");
  const cmd =  `${toRun}pdfinfo -v`

I would be grateful for any help you can give me.

Screenshot 2021-05-20 at 15 16 42

siroshbashir01 commented 3 years ago

same issue I am also facing, it is a path issue