Rotating PDF documents
Starting from version 21.12 there is an ability to rotate the page of PDF documents by 90, 180, 270 degrees, if you do not specify the page value using ProcessPages, the default will be the first.
Here is the example of the code:
using (Annotator annotator = new Annotator("annotated_file.pdf"))
{
annotator.ProcessPages = 1;
annotator.Rotation = RotationDocument.on90;
annotator.Save("result.pdf");
}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
- GroupDocs.Annotation for .NET examples, plugins, and showcase
- GroupDocs.Annotation for Java examples, plugins, and showcase
- Document Annotation for .NET MVC UI Example
- Document Annotation for .NET App WebForms UI Modern Example
- Document Annotation for Java App Dropwizard UI Modern Example
- Document Annotation for Java Spring UI Example
Free Online App
Along with full-featured .NET library we provide simple but powerful free Apps. You are welcome to annotate your PDF, DOC or DOCX, XLS or XLSX, PPT or PPTX, PNG and other documents with free to use online GroupDocs Annotation App.