Also tried selecting similar elements (with Edit>Selec Same>Fill and stroke) and combining them - this could be a solution, but the combined object, in such a detailed file, changes the order of objects. I tried arranging them, but at some point realised it wasn't viable.
Yes, I thought of that. It could work....well, it could help, I should say. But would take a lot of work to do it.
Oh, I'm surprised that reducing the file size didn't allow you to save as PDF! That must mean that file size was not the problem. Either that, or it just wasn't reduced enough. Hhmm.... In the Save As PDF dialog, did you try both PDF versions? Also use convert text to path, instead of embedding fonts.
Hhmm, when I try it, I don't get any error message, but Inkscape freezes fatally. Yes, I tried both PDF versions and text to path.
Looking closer at the file, I found some Flowed Text, which could be problematic. It looks like all the text you added was flowed text. But after converting it to paths, I still couldn't save the file.
Ok, this is my last guess about what might be wrong with the file, which could be preventing saving as PDF. I opened the XML Editor, which took forever to open. I've never noticed that it takes longer, in a large file, before. But there is something odd about the XML which leads me to think it might be partially corrupt. Someone else will have to chime in on this part, because I'm certainly not fluent in XML.
I'm concerned about these large empty spaces in the code, which appear to be enclosed by double-quotes. Please see the attached screenshot.
Ah-HA!!! When the XML Editor is open, my file manager identifies the file as "invalid SVG file", which means it's corrupt. This
must be your problem! Theoretically, it should be possible to open the XML file in a text editor, and remove the corrupt portions.
Hhm, they seem to be related to the number/pointers you added. I'm looking at #8, at the moment. I don't seen any unexpected characters in the text editor, where those quotation marks are. There are just a few blank lines of code there. The "8" has a huge amount of code for the style attribute, which I haven't seen before. Even though I've converted the text to path, the value for the style attribute still has a lot of references to font. Although to be honest, I don't know if that's part of what makes it corrupt.
Well, hopefully someone who knows more about XML than me, can figure out what's wrong.