Headers reversed in pdf export from Writer

I have formatted a book for Createspace. This is the third one I’ve done, but the first time I’ve had this problem. The page numbers in the header on odd-numbered pages must be on the right side of the page. In the odt document in Writer, they are. But when I export to pdf, the headers are reversed, so that all the page numbers would be next to the spine of the book. I’m using LO 6.1 with Windows 10.

It may be possible that at some point a blank page is missing. See in File>Export as PDF if you checked Export automatically inserted blank page.

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

I inserted a blank page and it worked fine. Thanks for the answer!