←Select platform

RotatePages Method

Summary

Rotate one or more pages in an existing PDF file.

Syntax
C#
VB
C++
public void RotatePages( 
   int[] angles, 
   int firstPageNumber, 
   int lastPageNumber, 
   string destinationFileName 
) 
Public Sub RotatePages( 
   ByVal angles() As Integer, 
   ByVal firstPageNumber As Integer, 
   ByVal lastPageNumber As Integer, 
   ByVal destinationFileName As String 
) 
public:  
   void RotatePages( 
      array<int>^ angles, 
      int firstPageNumber, 
      int lastPageNumber, 
      String^ destinationFileName 
   ) 

Parameters

angles

Rotation angles for each page specified. Angles are in degrees and must be multiple of 90. Positive values will rotate the page clock-wise while

negative values will rotate the page counter clock-wise.

firstPageNumber

First page number to rotate.

lastPageNumber

Last page number to rotate.

destinationFileName

Name of the destination PDF file to be created. If the value of this parameter is null then the filename

set in FileName will be updated.

Remarks

For an example, to rotate pages 1 through 10 (total of 10 pages) in an existing PDF file by 90 degrees, create an array of 10 integers each initialized with a value of 90, then call this method.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly