I’ve thinking about filing a bug, but it only happens with certain files which contain private data, so I guess it won’t be useful.
So: there’s these two PDF files (my COVID vaccine certificate and an electricity bill) which Documents app refuses to open. It says “Broken file, cannot read the PDF document” or something like that. They work fine in my PC (Linux, Okular PDF viewer).
Looking for additional output, I launched Documents from the console (sailfish-office), when… surprise! It opened then without trouble.
Any idea? Could it be related to some kind of cache? Rebooting does nothing. Anyway, I hope this topic is useful to anyone who gets that annoying “broken file” error.