# Split a PDF by file size
Split a PDF into smaller documents, each no larger than a maximum size in bytes, in a Power Automate flow. The parts come back as an array of documents.
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."
fields={[
{ label: "File Content", kind: "token", value: "File Content", required: true },
{ label: "Maximum Bytes", value: "1048576", required: true },
]}
/>
## 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.
</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>
Split a PDF by file size
Split a PDF into smaller documents, each no larger than a maximum size in bytes, in a Power Automate flow. The parts come back as an array of documents.
Use this action to split a PDF document into multiple smaller PDF documents, each no larger than a maximum file size.
ParametersSettingsCode viewTestingAbout
File Content
File Content
Maximum Bytes
1048576
Parameters
File ContentFilerequiredThe content of the input PDF document.
Maximum BytesInteger NumberrequiredThe 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.
Response
This action returns a list of PDF documents. Add an Apply to each over the Documents output to process every part.
DocumentsArrayThe 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.