Utilize the pageRanges option to specify which pages to include in the PDF output. See PDF options for more options.

Example

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

curl --request POST 'https://api.doczilla.app/v1/pdf' \
  --header 'Authorization: Bearer <your token>' \
  --header 'Content-Type: application/json' \
  --output 'doczilla.pdf' \
  --data '{
    "page": {
      "url": "https://en.wikipedia.org/wiki/PDF"
    },
    "pdf": {
      "pageRanges": 1,2,18-19
    }
  }'

Output