NPM Package/docs/components/pdf/page-extract
Page Extract
Extract pages from the active PDF with page-extract and page-extract-delete using the SDK.
The extract actions operate on a pageRange in the current PDF. Use page-extract when you want to extract pages without removing them, and page-extract-delete when extraction should also remove those pages from the current file.
- page-extract: Extracts pages and keeps them in the current PDF.
- page-extract-delete: Extracts pages and deletes them from the current PDF.
Both extract actions use the same pageRange parameter shape.
typescript
Examples
Example showing how to extract pages programmatically:
typescript
Vanilla TS Integration
Open the focused demo to test extraction-related page actions live.
PDF Page Extract Demo
Focused live demo for page-extract workflows.
Preview opens in a large modal for zoom-friendly review.
