Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Page Rotation

Scroll Prev Top Next More

Rotate Page Command Line Format


win2pdfd.exe rotatepages "sourcefile" rotationdegrees pagenum "destfile"


Rotate page "pagenum" from “sourcefile” by "rotationdegrees" (0,90,180,270), and save pdf with rotated page in “destfile”. If "sourcefile" and "destfile" are the same file, the file is modified in place.


Any file names that contain spaces must be enclosed with quotation marks.


Returns 0 on success, and a Windows system error code on failure.