Configuring orientation for pdf output