Rotate Document - Orientation Manager API
PDF4me Rotate Document is a powerful enterprise-grade solution that rotates entire PDF documents through advanced API integration. This comprehensive PDF document rotation service efficiently processes PDF documents, providing intelligent document orientation, automated rotation processing, document management, and advanced PDF processing capabilities for enhanced workflow optimization and document handling. The API processes document rotation by receiving source PDF documents through REST API calls, utilizing advanced rotation algorithms and intelligent orientation processing for accurate document rotation and professional PDF processing. With comprehensive support for multiple rotation types, intelligent document processing, automated rotation workflows, and professional PDF handling, this solution is ideal for document management, automated document rotation, PDF optimization, and enterprise workflows that require reliable document rotation with guaranteed accuracy and consistent output quality. Rotate Document pages easily with API for advanced PDF processing and document orientation management.
Authenticating Your API Request
To access the PDF4me REST API, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user of the REST API.
Key Features
- Multiple Rotation Types: Support for various rotation angles and orientations
- Document-Wide Rotation: Rotate entire PDF documents with all pages
- Intelligent Processing: Advanced algorithms for accurate document rotation
- Quality Preservation: Maintain PDF quality during document rotation operations
- Seamless API Integration: RESTful API designed for automated PDF processing workflows and enterprise system integration
REST API Endpoint
The PDF4me REST API uses standard HTTP methods to interact with resources. All document rotation operations are performed through a single endpoint:
- Method: POST
- Endpoint:
/api/v2/RotateDocument
Supported PDF Document Rotation Features
The API provides comprehensive support for various PDF document rotation and orientation capabilities:
Rotation Types
- Multiple Angles: Support for 90°, 180°, and 270° rotation angles
- Intelligent Processing: Advanced algorithms for accurate rotation processing
- Quality Preservation: Maintain PDF quality during rotation operations
- Professional Results: High-quality PDF processing with accurate rotation
- Advanced Processing: Support for complex document structures and rotation requirements
Document Processing
- Document-Wide Rotation: Rotate entire PDF documents with all pages
- Intelligent Processing: Advanced algorithms for accurate document analysis
- Quality Preservation: Maintain PDF quality during document rotation
- Professional Results: High-quality PDF processing with accurate document rotation
- Advanced Processing: Support for complex document structures and processing requirements
Orientation Management
- Orientation Management: Manage document orientation and page alignment
- Quality Preservation: Maintain PDF quality during orientation changes
- Professional Results: High-quality PDF processing with accurate orientation
- Advanced Processing: Support for complex document structures and orientation requirements
REST API Parameters
Complete list of parameters for the Rotate Document REST API. Parameters are organized by category for better understanding and implementation.
Important: Parameters marked with an asterisk (*) are required and must be provided for the API to function correctly.
Required Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| File Content* | Base64 | The complete content of the PDF document encoded in Base64 format for document rotation processing. This parameter contains the entire PDF file data required for document analysis, rotation processing, and orientation workflows. Essential for secure document handling and API-based PDF document rotation operations. | JVBERi... |
| File Name* | String | The source PDF document filename with proper .pdf extension for document rotation operations. This parameter identifies the input document for document analysis, rotation processing, and orientation workflows. Required for document identification and processing pipeline management in PDF document rotation operations. | document.pdf |
| Rotation Type* | String | Specify the rotation type for document orientation changes. Choose from 90 (90-degree clockwise rotation), 180 (180-degree rotation), 270 (270-degree clockwise rotation), or -90 (90-degree counter-clockwise rotation). This parameter enables precise control over document orientation and rotation angles for optimal document presentation and readability. | 90 |
Output
The PDF4me Rotate Document REST API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:
- JSON
- Table
- Schema
- Binary
JSON Response Format
The raw JSON response from the API:
{
"File Content": "Output file content from the PDF4me action",
"File Name": "Output file name from the PDF4me action"
}
Table View
Response data in a structured table format:
| Parameter | Value |
|---|---|
| File Content | Output file content from the PDF4me action |
| File Name | Output file name from the PDF4me action |
Schema View
The data structure and types of the response:
2 items
File Content: Binary Output file content from the PDF4me action
File Name: String Output file name from the PDF4me action
Type Indicators:
Binary= Binary dataString= Text data
Binary Data View
The actual rotated PDF file data:
data
─────────────────────────────
File Content: Output file content from the PDF4me action
File Name: Output file name from the PDF4me action
Binary Data Access:
- PDF Content: Ready for download or further processing
- Rotated PDF: Complete PDF with entire document rotated
Request Example
Header
Content-Type: application/json
Authorization: YOUR_API_KEY
Note: Get your API key from the PDF4me Dashboard
Payload
{
"docContent": "Please put PDF base64 content",
"docName": "document.pdf",
"rotationType": "90"
}
Code Samples
The PDF4me Rotate Document REST API provides code samples in multiple programming languages. Choose the language that best fits your development environment:
- C#
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda
Google Script Sample
Google Apps Script implementation for Google Workspace integration:
PDF Document Rotation Features
Rotation Types
- Multiple Angles: Support for 90°, 180°, and 270° rotation angles
- Intelligent Processing: Advanced algorithms for accurate rotation processing
- Quality Preservation: Maintain PDF quality during rotation operations
- Professional Results: High-quality PDF processing with accurate rotation
- Advanced Processing: Support for complex document structures and rotation requirements
Document Processing
- Document-Wide Rotation: Rotate entire PDF documents with all pages
- Intelligent Processing: Advanced algorithms for accurate document analysis
- Quality Preservation: Maintain PDF quality during document rotation
- Professional Results: High-quality PDF processing with accurate document rotation
- Advanced Processing: Support for complex document structures and processing requirements
Orientation Management
- Orientation Management: Manage document orientation and page alignment
- Quality Preservation: Maintain PDF quality during orientation changes
- Professional Results: High-quality PDF processing with accurate orientation
- Advanced Processing: Support for complex document structures and orientation requirements
Industry Use Cases & Applications
- Use Cases
Use Cases
- Document Orientation: Correct document orientation in scanned documents
- Print Management: Rotate documents for proper printing and presentation
- Archive Management: Correct orientation in archived documents
- Content Management: Rotate documents in content management systems
- Workflow Automation: Automate document rotation workflows for enterprise operations
- Batch Processing: Process large volumes of PDFs with automated document rotation
- Document Processing: Rotate documents for better presentation and usability
- Content Distribution: Rotate documents for proper content distribution and sharing