I need to create a printing service and publish it in ArcGIS Server 10.4 that accepts rotation and map extents or scale. Any help is highly appreciated.
ArcGIS Server printing services have this functionality by default, because it functions exactly like an MXD where you can specify scale, rotation, etc. Have a look at the Export Web Map Specifications (Export Web Map Specification), with specific mention of the mapOptions property where you can set scale and rotation.
Thanks. I had already figured it out.