First, how do you determine a page to be landscape or portrait? Is it based on some property to configure? If you can determine that, then you can adjust your CSS dynamically or if you do have two different transformation, then you can set the transformation dynamically in the properties based on that L/P value using macro condition.