# Split a PDF by file size

Split a PDF document into multiple smaller PDF documents, each no larger than a maximum file size, in your Power Automate flow.

Use this action to split a PDF document into multiple smaller PDF documents, each no
larger than a maximum file size.

<PowerAutomateAction
  title="Split a PDF by file size"
  caption="Split a PDF by file size."
  connection="PDF Blocks Next"
  fields={[
    { label: "File Content", kind: "token", value: "File Content", required: true },
    { label: "Maximum Bytes", value: "1048576", required: true },
  ]}
/>

<ConnectorNotice kind="action" />

## Parameters

<ParamField name="File Content" type="File" required>
  The content of the input PDF document.
</ParamField>

<ParamField name="Maximum Bytes" type="Integer Number" required>
  The maximum size in bytes of each output PDF document (for example `1048576` for 1
  MB). A single page larger than this size is returned as its own part that exceeds
  the limit. The value is 1 or more.
</ParamField>

## Response

This action returns a list of PDF documents. Add an **Apply to each** over the
**Documents** output to process every part.

<ParamField name="Documents" type="Array">
  The output PDF documents, in order. Each item has:

  - **File Name** — the name of the PDF document (`00001.pdf`, `00002.pdf`, and so on).
  - **File Content** — the content of the PDF document, which you can use as an input to other actions.
  - **Content Type** — the media type of the document (`application/pdf`).
</ParamField>

## Related actions

<CardGroup cols={2}>

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

<Card title="Split at page" href="/docs/power-automate/split-pdf-at-page">
  Cut the document into two parts at a page boundary.
</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="Merge documents" href="/docs/power-automate/merge-pdf-documents">
  Combine documents back into one.
</Card>

</CardGroup>
