Fix orientation and margins parameters.