←Select platform

RotatePages Method

Summary

Rotate one or more pages in an existing PDF file.

Syntax
C#
C++/CLI
Java
Python
public void RotatePages( 
   int[] angles, 
   int firstPageNumber, 
   int lastPageNumber, 
   string destinationFileName 
) 
public:  
   void RotatePages( 
      array<int>^ angles, 
      int firstPageNumber, 
      int lastPageNumber, 
      String^ destinationFileName 
   ) 
public void rotatepages( 
   int[] int[Value,  
   int intValue,  
   int intValue2,  
   java.lang.String string 
); 

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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.