Translating an entire book

Has anyone tried to translate an entire book? If so did you have success? I have a book (in plain text 500 pages) that I want to translate from Japanese to English (Helsinki-NLP/opus-mt-ja-en). Do you have any suggestions on how to approach such a task? Should I try to translate each paragraph or possibly an entire page? My initial attempt was to break up the text into sequences of length 512 (the max length for the model), but the results were not great. I entered sections of the text into Google Translate and noticed better results. Do you have any recommendation on how to maintain formatting of the original text?

Thanks for your help,