You can use the PageRotation element to change the rotation angle of a page. The
rotate90 attribute specifies the rotation angle in increments of 90 degrees, where a positive value is clockwise rotation and a negative value is counterclockwise. This rotation is absolute, not relative. That is, a
rotate90 value of 90 means that the page rotation (which corresponds to the /
Rotate entry of the PDF page dictionary) is 90 degrees, not that it is 90 degrees more than what it was previously. For example, if the original rotation angle was 90 and you specify 90 in the
PageRotation element, there is no change.
If you specify a rotation value other than 0, the Assembler service assumes that the pages are set the way you want to view them. For example, when you add a footer to a rotated page, the footer will be at the bottom of the newly oriented page.
It is important to keep in mind the relationship of this to the PageSize value. If you change
PageRotation, the effective page size (which would be returned by the
DocumentInformation query) will change. However, if you change
PageSize, the rotation (as returned by
DocumentInformation) does not change.
If you specify a page size for your document, it is possible that some of the pages will have a different orientation from the specified one. To control what happens, you can set the
select attribute of the
PageSize element to one of the following values: