Delete pages
Removes the pages you list.
POST/forms/pdf/delete
Form data
Options
curl \
--request POST http://localhost:3000/forms/pdf/delete \
--form files=@report.pdf \
--form pages=last \
-o report.pdf
pages takes a page selection. To keep a few pages rather than remove a few, select them.
In a list of stages
The stage also runs in a list on /forms/pdf/pipe, and on the PDFs a Chromium or LibreOffice conversion makes, in its stages field:
curl \
--request POST http://localhost:3000/forms/pdf/pipe \
--form files=@report.pdf \
--form 'stages=[
{ "op": "delete", "pages": "2" }
]' \
-o report.pdf