# Merging Multiple PDFs into a Single Image for AI Actions

**URL:** <https://community.glideapps.com/t/merging-multiple-pdfs-into-a-single-image-for-ai-actions/82713>\
**Category:** Community Resources\
**Tags:** ai, custom-code, pdf, image, automation\
**Created:** [June 25, 2025, 12:06am UTC](https://community.glideapps.com/t/merging-multiple-pdfs-into-a-single-image-for-ai-actions/82713 "2025-06-25T00:06:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [June 25, 2025, 12:06am UTC](https://community.glideapps.com/t/merging-multiple-pdfs-into-a-single-image-for-ai-actions/82713/1 "2025-06-25T00:06:48Z")

</div>

Hey Gliders!  
It’s me again, bringing you another creative use case. This time: **merging multiple PDFs into a single image** so you can use it with an AI action in Glide. This technique helps reduce update usage and ensures all the data is centralized in one file. It’s also great for preserving context between related PDFs.

Here is how to do it step by step:

1. Prepare your table: Add a column named “Merged File URL” to your table. This will store the final image URL.
2. Create an ImgBB Account:
  - Go to [https://imgbb.com](https://imgbb.com), create a free account, and generate an **API key**.
  - Since you’ll use this key in a public context, **don’t use your main/personal email**.
  - **Important:** While this isn’t the most secure method (because the API key is exposed), you can mitigate risks by setting the file to **self-destruct** after a short period (e.g., 1 minute). This gives you enough time to upload the image back into Glide using the `Upload File` or `Create File` action.

3. Use the PDF Merge to Image AI Component
  - Use this AI component I’ve shared: 👉 [Glide Component - PDF Merge to Image](https://components.glide.info/share/commit::d973b898-17d2-c90b-e821-e7e2582eb77f)

4. Configure the Component
  - Set your **ImgBB API key** in the `ImgBB Key` field.
  - You can use a config table if you want to keep things flexible.
  - Set the **output URL** to the “Merged File URL” column you created earlier.

5. Upload Multiple PDFs
  - Test by uploading multiple PDF files into the component.
  - The result will be a single merged image, and its URL will be saved in your “Merged File URL” column.
  - You can then **automatically re-upload that image** into Glide using the `Upload File` action.

6. Automate It (Optional but Awesome)  
You can take this further by **automating the upload** when the merged file is ready.  
Here’s another AI component I built to help you with that: 👉 [https://real-time-workflow.mbci.space/dl/a400f7](https://real-time-workflow.mbci.space/dl/a400f7)  
_(If the link fails, use the fallback: [https://real-time-workflow.glide.page](https://real-time-workflow.glide.page))_

### 📸 Screenshots

_(Screenshots attached below for reference)_

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/a/0ab3bf392f352434847a5f65735ffda2ced3a306.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/8/584ea18840fb0250c0a66c9252e70e18ac1df7c1.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/8/381bb83e9bbe0fdb003e6a431839a5ec3424e67a.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/a/4aa17b1343ed8bb8a211b0b7f6cc8ad3b66e13d6.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/d/5db98af5e6c444bb80d148ac6c49f20f2e23ed50.jpeg)

Let me know if you try it or improve it!  
Hope this helps you take your Glide apps to the next level.

---

<div class="post-metadata">

**Author:** ![Mazen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mazen/32/84042_2.png) [@Mazen](https://community.glideapps.com/u/Mazen)\
**Post date:** [June 25, 2025, 12:59am UTC](https://community.glideapps.com/t/merging-multiple-pdfs-into-a-single-image-for-ai-actions/82713/2 "2025-06-25T00:59:08Z")

</div>

Great work! Well done my friend.
