PDF Rotate
Rotate PDF documents with free cross-platform Apps and APIs
How to Rotate PDF Pages
In order to rotate PDF file, we’ll use Aspose.PDF API which is a feature-rich, powerful and easy to use document manipulation API for any platform. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console.
Rotate PDF documents
You need Aspose.PDF library to try the code in your environment.
- Load the PDF with an instance of Document.
- Move page upper in order to compensate changing page size.
- Set old and new page height.
- Setting the page rotation angle.
- Save the output PDF file.