win2pdfd.exe rotatepages "sourcefile" rotationdegrees pagenum "destfile"
Rotate a single page specified by "pagenum" from “sourcefile” by "rotationdegrees" (0,90,180,270), and save PDF with rotated page in “destfile”. If "pagenum" is 0, all pages in the document are rotated. If "sourcefile" and "destfile" are the same file, the file is modified in place.
The rotation is absolute, not relative. If a page is already rotated by 90 degrees, calling rotatepages again with "rotationdegrees" set to 90 will have no affect.
Any file names that contain spaces must be enclosed with quotation marks.
Requires a licensed version of Win2PDF. Contact support@win2pdf.com for a time limited evaluation license.
Returns 0 on success, and a Windows system error code on failure.