Select pages
Keeps the pages you list, in the order you list them.
POST/forms/pdf/select
Form data
Options
Keep pages
curl \
--request POST http://localhost:3000/forms/pdf/select \
--form files=@report.pdf \
--form pages=1-2 \
-o report.pdf
pages takes a page selection: a page, a range, a list of both, or all, odd, even or last.
Reorder pages
select keeps the pages in the order you list them:
curl \
--request POST http://localhost:3000/forms/pdf/select \
--form files=@report.pdf \
--form pages=3,1,2 \
-o report.pdf
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": "select", "pages": "3,1" }
]' \
-o report.pdf