# Extract pages from a PDF
Create a new PDF from a selection of pages of an existing one, in a Zap. No code to write, and no document is stored after the Zap runs.
Use this action to extract one or more pages from a PDF document. The
extracted pages are returned as a new PDF document.
## Input
<ParamField name="PDF Document" type="file" required>
The content of the input PDF document.
</ParamField>
<ParamField name="First Page" type="integer number">
The first page to extract. Minimum value is 1. If left empty, extraction
begins with the document's first page.
</ParamField>
<ParamField name="Last Page" type="integer number">
The last page to extract. Minimum value is 1. If left empty, extraction
concludes with the document's final page.
</ParamField>
## Output
<ParamField name="File" type="file">
A file with the extracted PDF document. You can use it as input to other
steps in your zap.
</ParamField>
Extract pages from a PDF
Create a new PDF from a selection of pages of an existing one, in a Zap. No code to write, and no document is stored after the Zap runs.
Use this action to extract one or more pages from a PDF document. The extracted pages are returned as a new PDF document.
Input
PDF DocumentfilerequiredThe content of the input PDF document.
First Pageinteger numberThe first page to extract. Minimum value is 1. If left empty, extraction begins with the document’s first page.
Last Pageinteger numberThe last page to extract. Minimum value is 1. If left empty, extraction concludes with the document’s final page.
Output
FilefileA file with the extracted PDF document. You can use it as input to other steps in your zap.