I’m experiencing anomalous layout behavior in LibreOffice Writer. I’ll do my best to summarize the issue.
LibreOffice version: 6.4.7.2.
System Specs (in case it’s a memory issue) -
Processor: i5 3.2ghz quad core
Memory: 8gb DDR4 RAM
OS: Ubuntu 20.04.4 LTS
Gnome version: 3.36.8
My document is a book I’m writing. The raw manuscript is ~1600 pages which will likely be 3,000 pages once I correct all the missing formatting.
I used an official WordPress utility to export 12 years of WP articles as .DOCX documents. I imported those into a master document .ODM file in LIbreOffice. Once I had them in the right order, I saved the project as an .ODT file and removed all the document links so that I could edit the book layout freely.
Due to a bug in the initial conversion, nearly all paragraph breaks were lost so all 3,000 pages of text are sentences butted up against each other. And similarly, the article images were jumbled and scattered at random throughout the document. I submitted a help request and a member of this community was amazing at helping me use the PicTool extension to batch-scale all 1300+ images and to dynamically assign their scale to the paragraph area. This way, if my publisher asks me to modify the margin measurements closer to publication, all images will snap to the new area. I was so grateful for that help!
The remaining task has been to go through the 1600+ page document, pull up each original WP article one at a time on the web, and correct all the missing paragraph breaks and to reposition all the images where they’re supposed to appear throughout each article. It’s a lot of work, but I blocked out several hours each weekend and created a spreadsheet to track which articles I’ve cleaned up. I’m tackling them in the order they appear so that I can move linearly through the document without compromising earlier pages as I work. I’ve been incrementally saving versions of the document as I go in case I suddenly discover that I’ve damaged something earlier in the file.
The document has an unnumbered title page, preface, and dynamically generated TOC. Numbering begins at the first article following the TOC. Periodically I know I need to right-click and Update Index so that the TOC reflects the adjusted pages as I clean them up.
This brings me to the anomalous behavior. I noticed that when I launch the document and scroll to the very end, the final numbered page showed as 1685. I closed and reopened the file and the final page number jumped to 1597. I clicked on Update Index for the TOC and then scrolled to the end and the final page number then showed as 1593. Worried that I was losing content, I tried opening the next-to-most-recent version of the doc alongside the other to compare them. LibreOffice crashed and force-exited, most-likely due to it running out of memory loading two 1600+ page documents. I relaunched them, recovered the lost files when prompted at launch, and updated the index for each file’s TOC. Now the final page number for both versions showed as 1593.
They crashed and force-quit again, and after recovering them one document showed 1594 pages instead of 1593. Then it crashed and exited again. The next time I opened it it showed 1589 pages. Updating the TOC changed it to 1594. I closed and reopened the earlier version and then it showed 1592 numbered pages. I closed and reopened them without attempting recovery and it showed 1658 pages before I updated the TOC. After updating it showed 1591 pages. I should note that I’d made no changes to the layout of any numbered pages during any of this so there is no reason the total number of pages should be changing at all.
Then I scrolled through the document reviewing the articles I’d recently tidied up and found that a few had stray images hanging off the page where I had previously worked incredibly hard to place them correctly. This is so disheartening as it takes me hours of painstaking work to correct the layout of each article. Checking the next-to-most recent version, one of the misplaced images was correct but the other had similarly shifted.
There’s no way for me to audit the thousands of pages of content after I’ve already proofed them and saved incrementally without re-reading my book hundreds of times, so I need a better solution to preserve the changes once I make them. And I need to determine why the page count is changing so wildly without any changes being made to the numbered pages of the document.
I really hope there is a solution so I can eventually publish my book. I sincerely appreciate any insight the community can offer.
Thank you!