reverse pdf table order