Skip to content

Reverse pages

Reverse the page order of a PDF. MCP tool reverse_pages / HTTP POST /v1/pages/reverse.

Flip the entire page order of a document — handy for back-to-front scans.

MCP tool reverse_pages
HTTP endpoint POST /v1/pages/reverse
Price $0.05
Input One PDF
Output The same PDF with pages in reverse order
Parameter Type Required Description
file file yes Source PDF.

Reverse the page order of https://example.com/scanned-backwards.pdf.

{
"file": "https://example.com/scanned-backwards.pdf"
}
Terminal window
curl -i -X POST https://api.pdfasyougo.com/v1/pages/reverse \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <base64-encoded-payment-payload>" \
-d '{"file":"https://example.com/scanned-backwards.pdf"}'
{
"output": {
"url": "https://files.pdfasyougo.com/o/5e1b…?token=…",
"expires_at": "2026-06-29T12:00:00Z",
"pages": 12,
"bytes": 98304
},
"operation": "pages.reverse",
"cost": "0.05 USDC"
}
  • The whole document is reversed; there are no parameters to select a subset.
  • Page content and rotation are preserved — only the order changes.