You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FromPage (Optional value, ranging from 1 to the number of pages)
ToPage (Optional value, ranging from 1 to the number of pages)
When ToPage is not specified, but FromPage is, start from FromPage (inclusive) and print to the end.
When FromPage is not specified, but ToPage is, start from the beginning of the document and print until ToPage (inclusive).
When ToPage < FromPage, throw an error.
This suggestion is rather limited to a single range and doesn't allow complex ranges like you could pass to other print dialogs.
It should be made possible to pass an optional page range to the print command, so we can specify which pages from the PDF needs to be printed.
Suggestion 1: Add FromPage and ToPage parameters
The API model for the print/from-pdf endpoint (https://github.com/huysentruitw/print-it#post-apiprintfrom-pdf) could be extended with 2 optional values:
When ToPage is not specified, but FromPage is, start from FromPage (inclusive) and print to the end.
When FromPage is not specified, but ToPage is, start from the beginning of the document and print until ToPage (inclusive).
When ToPage < FromPage, throw an error.
This suggestion is rather limited to a single range and doesn't allow complex ranges like you could pass to other print dialogs.
Suggestion 2: Add Pages parameter
The API model for the print/from-pdf endpoint (https://github.com/huysentruitw/print-it#post-apiprintfrom-pdf) could be extended with an optional Pages parameter.
The Pages parameter takes a comma-separated string that supports single pages as well as page ranges, examples:
2
-> Only prints the 2nd page.2-4
-> Prints the 2nd page, until the 4th page.1,3-5
-> Prints the 1st page followed by the 3rd until the 5th page.The text was updated successfully, but these errors were encountered: