Trying to generate multi-page PDF from multiple Airtable Records via PDF.CO, but get several single-page PDFs instead

What are you trying to achieve?

My goal is to generate multi-page PDF using data from Airtable ‘Search Records’ module, which returns several data bundles.

Steps taken so far

  1. I get data bundles from Airtable ‘Search Records’ module (works)

  2. I prepared a single-page PDF template with and use PDF.CO ‘Fill the PDF’ module to add my Airtable data in it. I successfully mapped PDF fields with my Airtable data

  3. I received URLs for generated PDFs (several single-page PDFs for each Airtable bundle)

  4. I need to merge generated PDFs into one file. I tried to use ‘Merge a PDF’ module by PDF.CO as well, but got stuck here:
    Scenario fills first PDF, then goes to merge, then returns to filling second PDF, then merge. So based on it Merge module doesn’t work as I expect, since I still receive multiple single-page PDFs.
    And I want the Merge module to be processed only after all the PDFs in the previous step are filled with all the bundles.

Screenshots: scenario setup, module configuration, errors

1 Like

I figured out that I should’ve included Array Aggregator to get all URLs after ‘Fill a PDF’ module, and set ‘Search Records’ as Source Module for Array Aggregator.

I also needed a formula {{join(map(33.array; "url"); ",")}} in the ‘Merge a PDF’ module to get all links from the Aggregator. When I set just Array|URL as the source, I received only the first URL from the bundle.

3 Likes