
:max_bytes(150000):strip_icc()/how-to-rotate-pdf-50958558-eb1e043ede2243f3aecbe388ae367083.jpg)
You can also explore our WinForms PDF documentation to understand how to present and manipulate data.įor current customers, you can check out our WinForms components from the License and Downloads page.

You can refer to our WinForms PDF’s feature tour page to know about its other groundbreaking feature representations. I hope you enjoyed learning about how to rotate a PDF document based on angle using C# and VB.NET. Refer to link to learn about generating and registering Syncfusion license key in your application to use the components without trail message. Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, include a license key in your projects. Refer here to explore the rich set of Syncfusion Essential PDF features.Īn online sample link for adding pages with different settings such as rotation, orientation, page size, and transition. Take a moment to peruse the documentation for working with document, where you will find other options like orientation, transition, and standard or custom page size in the PDF document. 'Set document rotation angle as 270 degreeĭoc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle270Ī complete working sample can be downloaded from RotatePDFBasedOnAngle.zip.īy executing the program, you will get the PDF document as follows. 'Set document rotation angle as 180 degreeĭoc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180 'Set document rotation angle as 90 degreeĭoc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle90ĭoc.ImportPageRange(ldoc, 0, ( - 1)) 'Create a new instance of PdfDocument classĭim doc As PdfDocument = New PdfDocument() Set document rotation angle as 270 degreesĭoc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle270 ĭim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") Set document rotation angle as 180 degreesĭoc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180 Set document rotation angle as 90 degreesĭoc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle90 ĭoc.ImportPageRange(ldoc, 0, - 1) Create a new instance of PdfDocument class

PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf")
