CloudConvert icon

CloudConvert

Use CloudConvert to convert files, create thumbnails, merge files, add watermarks and more!

Overview

This node operation allows users to rotate specific pages or all pages of a PDF file using CloudConvert's PDF processing capabilities. It is useful for scenarios where PDF pages need to be reoriented, such as correcting scanned documents or adjusting page layouts. For example, a user can rotate pages 1, 2, and 5-7 by +90 degrees to change their orientation.

Use Case Examples

  1. Rotate pages 1, 2, and 5-7 of a PDF by +90 degrees to correct orientation.
  2. Rotate all pages of a PDF by 180 degrees for presentation purposes.

Properties

Name Meaning
Authentication Method of authenticating with CloudConvert API, either OAuth2 or API Key.
Binary Input Data Whether the input PDF file is provided as binary data.
Input File Contents The text content of the PDF file to upload, used if binary input data is false.
Binary Property Name of the binary property containing the PDF file data, used if binary input data is true.
Pages Pages or page ranges to rotate, e.g., '1,2,5-7'; page numbering starts at 1.
Rotation Rotation angle to apply to the specified pages, e.g., '+90', '-90', or '180'.

Output

JSON

  • rotatedPdfFile - The resulting PDF file after pages have been rotated.

Dependencies

  • CloudConvert API

Troubleshooting

  • Ensure the input PDF file is correctly provided either as binary data or text content depending on the 'Binary Input Data' setting.
  • Verify the page numbers or ranges specified in 'Pages' are valid and within the PDF's page count.
  • Check that the rotation angle is one of the accepted values: '+90', '-90', or '180'.
  • Authentication errors may occur if the API key or OAuth2 token is invalid or expired; reauthenticate as needed.

Links

Discussion