win2pdfd.exe rotatepages "sourcefile" rotationdegrees pagenum "destfile"
Rotate a single page specified by "pagenum" from “sourcefile” by "rotationdegrees" (0,90,180,270), and save the 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. The "sourcefile" can be a local file path, or an web address (URL) to an existing PDF.
This feature requires a licensed version of Win2PDF. Contact us for a time limited evaluation license.
Returns 0 on success, and a Windows system error code on failure.