{"uid":"cap_nP_tY30u98kuepVmkwkyN","slug":"agent402-tools-pdf-page-rotation-2aad3da0","name":"agent402.tools PDF Page Rotation","description":"Rotate pages by 90/180/270°. Body: {\"url\":\"https://…/file.pdf\",\"degrees\":90,\"pages\":\"1-3\"?}. Omit \"pages\" to rotate all. Returns the new PDF as base64.","url":"https://agent402.tools/api/pdf-rotate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public URL of the PDF"},"pages":{"type":"string","description":"Optional page selector; default all"},"degrees":{"type":"number","description":"90, 180, or 270 (clockwise)"}}},"responseSchema":{"type":"json","example":{"bytes":2215300,"pages":15,"pdfBase64":"JVBERi0xLjcK…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pGzdpWtAD1_2PYM5K_Jal","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rotates pages in a PDF by 90, 180, or 270 degrees clockwise, returning the modified document as base64-encoded data","exampleAgentPrompt":"Can you rotate pages 1 through 3 of the PDF at https://example.com/report.pdf by 90 degrees clockwise and give me the result?","exampleUseCases":null,"resultDescription":"Returns the processed PDF as a base64-encoded string representing the file with the specified pages rotated by the given angle","failureModes":["Invalid or inaccessible PDF URL returns an error","Degrees value not one of 90, 180, or 270 returns a validation error","Page selector references pages out of bounds for the document","URL points to a non-PDF file causing a parse error","Payment of 0.003 USDC not completed returns HTTP 402"],"whenToPreferThis":"Use this endpoint when you need to rotate pages in an existing PDF document programmatically, especially when you need selective page rotation (specific page ranges) and receive the result as base64 for further processing or storage","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:56:57.797Z","isFirstParty":false}