# Split a PDF by page count
Split a PDF into consecutive parts of a fixed number of pages, in a Power Automate flow, with whatever is left over in the final part.
Use this action to split a PDF document into consecutive parts of a fixed number of
pages. The last part holds the remaining pages and may be smaller.
<PowerAutomateAction
title="Split a PDF by page count"
caption="Split a PDF by page count."
fields={[
{ label: "File Content", kind: "token", value: "File Content", required: true },
{ label: "Page Count", value: "10", required: true },
]}
/>
## Parameters
<ParamField name="File Content" type="File" required>
The content of the input PDF document.
</ParamField>
<ParamField name="Page Count" type="Integer Number" required>
The number of pages in each output PDF document. The last part holds the remaining
pages and may be smaller. 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 at page" href="/docs/power-automate/split-pdf-at-page">
Cut the document into two parts at a page boundary.
</Card>
<Card title="Split by file size" href="/docs/power-automate/split-pdf-by-file-size">
Cap each part by byte size.
</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 page count
Split a PDF into consecutive parts of a fixed number of pages, in a Power Automate flow, with whatever is left over in the final part.
Use this action to split a PDF document into consecutive parts of a fixed number of pages. The last part holds the remaining pages and may be smaller.
ParametersSettingsCode viewTestingAbout
File Content
File Content
Page Count
10
Parameters
File ContentFilerequiredThe content of the input PDF document.
Page CountInteger NumberrequiredThe number of pages in each output PDF document. The last part holds the remaining pages and may be smaller. 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.