Skip to main content
Set pdf.pageRanges to a string of page numbers and ranges. Use commas to separate entries and hyphens for inclusive ranges. See PDF options.

Example

This example generates a PDF from the Wikipedia page about PDF, extracting pages 1, 2, and 18 through 19.

Output

Open the selected-pages PDF