support to add page in different orientation in a pdf file

Change-Id: I6ddb410e06b255d19547d3cc51ce78e080fda483