PDF Blocks
PricingSupport
Start Free
Go to Page

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.

Split a PDF by file size
ParametersSettingsCode viewTestingAbout
File Content
File Content
Maximum Bytes
1048576
Split a PDF by file size.

This action is rolling out to the published PDF Blocks connector and may not appear in your environment yet. To use it today, import the connector from GitHub as a custom connector.

Parameters

File ContentFilerequired

The content of the input PDF document.

Maximum BytesInteger Numberrequired

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.

Response

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

DocumentsArray

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).