API V2

Rotate Document

Connector ID: Rotate Document

Pages of a document may need differently oriented for certain processing of documents. Whether clockwise or anti clockwise, the feature of “rotate” is done with perfection in PDF4me.

  • Method: POST
  • Endpoint: /api/v2/Rotate

Parameters

File ContentBase64, Required

The content of the input file.

File NameString, Required

Source file name with proper file extension

Rotation TypeString, Required

Rotate direction for pages. The allowed values are

  • NoRotation
  • Clockwise
  • UpsideDown
  • CounterClockwise

Output

File ContentBinary

Output file content from PDF4me action

File NameString

Output file name form PDF4me action

Header
Content-Type:application/json
Authorization: Please copy key from the link.

Payload

{
  "docContent": "Please put PDF base64 content",
  "docName": "output.pdf",
  "rotationType": "UpsideDown"
}

PDF4me api samples

CSharp(C#)
Java
JavaScript
Python
Salesforce
n8n
Google Script
AWS Lambda