Remove pages from a PDF
Remove a selection of pages from a PDF with the Pages field, in a Power Automate flow. At least one page always remains.
Use this action to remove one or more pages from a PDF document.
Parameters
File ContentFilerequiredThe content of the input PDF document.
PagesStringThe pages to remove, as a comma-separated list of page numbers and ranges (for example 2,4..6). A negative number counts from the end, so -1 is the last page. At least one page must remain. This field is optional. Do not combine it with First Page / Last Page.
First PageInteger NumberThe page number of the first page to remove in the PDF document. This field is optional. The value is 1 or more. This is a legacy field kept for backward compatibility; prefer Pages, and do not combine it with Pages.
Last PageInteger NumberThe page number of the last page to remove in the PDF document. This field is optional. The value is 1 or more. This is a legacy field kept for backward compatibility; prefer Pages, and do not combine it with Pages.
Response
Removed Pages PDF File ContentFileThe content of the PDF document with some pages removed. You can use it as an input to other actions in your flow.