Newbie: Creating a PDF from JPEG

Hello,

I’m trying to create a PDF file from JPEG files (stored in a Airtable Database), to post as a LinkedIn carousel post.

It works well, except the problem is that the amount of jpegs varies.

And so when Make encounters an empty cell in Airtable it returns an error.

I suppose I need to nest the URL in an ‘if empty, then’ statement.

Can anyone point me in the right direction?

You may want to restructure your scenario and use a router before all the get files. Use a filter on the route between the router and each get file to check if a file exists. Then on the last route collect all the obtain files for the PDF.co module.

Router → Page 5
→ Page 6
→ Page 7
PDF.co

Along each → filter to make sure the file exists so the route is only followed if there is something to get.

You can get all the outputs from each Get file in the PDF.co

3 Likes