reorder some members of the pdf struct