Doc export: Fix the way orientation is handled

Signed-off-by: Jerome Flesch <jflesch@gmail.com>