Rotate pages
Turn pages that were scanned or exported the wrong way round.
POST https://api.pdfdispatch.com/v1/pdf/rotate
Form fields
| Field | Type | Default | What it does |
|---|---|---|---|
files required | file(s) | – | The PDFs to turn. |
rotateAngle required | integer | – | 90, 180 or 270, clockwise. |
rotatePages | string | – | Only these pages, for example 1, 3-5 or even. All pages without it. |
rotateAngle and rotatePages also work on every conversion route.
Example
Turn pages 2 and 3 a quarter clockwise:
curl --fail-with-body \
--header "Authorization: Bearer $PDD_KEY" \
--form files=@scan.pdf \
--form rotateAngle=90 \
--form rotatePages=2-3 \
--output scan-fixed.pdf \
https://api.pdfdispatch.com/v1/pdf/rotate
To print a whole document in landscape, use landscape=true on the conversion instead: rotating turns the page and
its content together.