aws-lambda-poppler-layer icon indicating copy to clipboard operation
aws-lambda-poppler-layer copied to clipboard

Can't find pdfinfo

Open BrianSHenderson opened this issue 4 years ago • 1 comments

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

BrianSHenderson avatar May 20 '21 14:05 BrianSHenderson

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

siroshbashir01 avatar Jun 08 '21 06:06 siroshbashir01