# Merge PDF documents from an array

Combine an array of PDF documents into a single PDF document in your Power Automate flow, for documents that come from a loop or an earlier action.

Use this action to combine an **array** of PDF documents into a single PDF document.
Reach for it when your documents come from a loop or an earlier action rather than
fixed file fields — for example the attachments of an email, the output of a
[split action](/docs/power-automate/split-pdf-by-page-count), or a list you built
with **Select** or **Compose**. Unlike
[Merge PDF documents](/docs/power-automate/merge-pdf-documents), it is not limited to
10 documents.

<PowerAutomateAction
  title="Merge PDF documents from an array"
  caption="Merge PDF documents from an array."
  connection="PDF Blocks Next"
  fields={[
    { label: "Documents", kind: "token", value: "Documents", required: true },
  ]}
/>

<ConnectorNotice kind="action" />

## Parameters

<ParamField name="Documents" type="Array" required>
  The PDF documents to merge, as an array. The merged document keeps the array order.
  Each item is an object with:

  - **File Content** — the content of the PDF document (required).
  - **File Name** — an optional name for the PDF document. The documents are merged in array order, so the name is only for readability.
</ParamField>

## Response

<ParamField name="Merged PDF File Content" type="File">
  The content of the merged PDF document. You can use it as an input to other actions in your flow.
</ParamField>

## Related actions

<CardGroup cols={2}>

<Card title="Merge documents" href="/docs/power-automate/merge-pdf-documents">
  Merge up to 10 documents from fixed file fields.
</Card>

<Card title="Split by page count" href="/docs/power-automate/split-pdf-by-page-count">
  Split a merged document back into fixed-size parts.
</Card>

<Card title="Split into page groups" href="/docs/power-automate/split-pdf-into-page-groups">
  Define arbitrary page groups by hand.
</Card>

<Card title="Extract pages" href="/docs/power-automate/extract-pages-from-pdf">
  Keep only some pages before merging.
</Card>

</CardGroup>
