Rotating PDF documents

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Annotation MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-annotation -- dnx GroupDocs.Annotation.Mcp --yes
Folders, licensing and more →

On this page

GroupDocs.Annotation v21.12 and later allows you to rotate the PDF document page by 90, 180, 270 degrees clockwise. To do this, specify the page number as the ProcessPages property and then set the Rotation property to one of the following values:

  • None does not rotate the document
  • on90 rotates the document 90 degrees clockwise
  • on180 rotates the document 180 degrees clockwise
  • on270 rotates the document 270 degrees clockwise

By default, the property is set to None.

The following code snippets shows how to rotate the first page by 90 degrees clockwise:

using (Annotator annotator = new Annotator("annotated_file.pdf"))
{
	annotator.ProcessPages = 1;
	annotator.Rotation = RotationDocument.on90;
    annotator.Save("result.pdf");
}

On this page