According to the docs, page ranges can be provided to the appendPage method as shown the example.
e.g.
pdfDoc.appendPage(longPDF, [
[1, 3],
[6, 20],
])
The current type declaration for pages only supports pages value to be [1, 3, 4] or simply 1. This PR updates this type declaration to support the ranges shown in the example.
According to the docs, page ranges can be provided to the
appendPage
method as shown the example.e.g.
The current type declaration for
pages
only supports pages value to be[1, 3, 4]
or simply1
. This PR updates this type declaration to support the ranges shown in the example.