Rotate Page
Rotate in Pdf4me allows selected pages or all pages in a document to be rotated in a given direction. Each page can also be rotated in different directions. The rotation directions available are clockwise, anti-clockwise and upside-down.
- Method: POST
- Endpoint: /api/v2/RotatePage
Parameters
- File contentbase64, Required
The content of the input file.
- File Namestring, Required
Source file name with proper file extension
- Rotation Typestring, Required
Select the rotation type from the list
- NoRotation
- Clockwise
- CounterClockwise
- UpsideDown
- Pagestring, RequiredDefault: 1
- Specify page indices as comma-separated values or ranges to process (e.g. “0, 1, 2-” or “1, 2, 3-7”).
- If not specified, the default configuration processes all pages. The input must be in string format.
Output
- File ContentBinary
File content of the rotated document
- File NameString
The file name of the rotated document
Header
Content-Type:application/json
Authorization: Please copy key from the link.
Payload
{
"docContent": "Please put PDF base64 content",
"docName": "output.pdf",
"rotationType": "Clockwise",
"page": "1"
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda