pageRanges

Type: <string>
It specifies the page range for generating the pdf over the target url.
  • CLI
  • JavaScript
  • Shell
  • Python
  • Ruby
const mql = require('@microlink/mql')

const { status, data } = await mql('https://stripe.com', { pdf: {landscape: {pageRanges: '1-1'}} })

mql.render(data)
Any interval can be defined, such as, '1-5, 8, 11-13'. If you want to print just one page, specify it as range, e.g., '1-1'.