News for hackers. Stuff that matters.
Re:Preview in macOS Big Sur is destroying PDFs by birdyrooster on Wednesday December 16, 2020 @03:47PM (#25448394)
Preview isn’t breaking files by reading them, as I understand it, people are saving files with Preview and over-writing their ABBY compatible pdf. Just because the last four bytes of a file name is “.pdf” doesn’t mean anything that opens files with that suffix will work.

PDF is not a bitmap, it’s a script like HTML or JS.

People understand browser incompatibility but some how this is unconscionable.

Re:Preview in macOS Big Sur is destroying PDFs by refulgentis on Wednesday December 16, 2020 @03:50PM (#25448436)
I see, the chain isn't as simple as bytes -> Preview -> unreadable bytes: rather, bytes -> Preview, edit -> unreadable bytes. Is that accurate?
Re:Preview in macOS Big Sur is destroying PDFs by fastball on Wednesday December 16, 2020 @03:57PM (#25448530)
No, the bytes are still readable by Preview, it's just the OCR meta that is apparently no longer copy-pastable.

No reason why you can't just run this through ABBYY FineReader again and get the exact same OCR you got the first time, so I think "irreversible" is definitely a stretch.

Re:Preview in macOS Big Sur is destroying PDFs by birdyrooster on Wednesday December 16, 2020 @03:54PM (#25448490)
Yep they are flushing new bits to disk when preview is instructed to save.