Hacker News new | ask | show | jobs
by kccqzy 37 days ago
I sincerely believe you need much more than one billion tokens to rewrite the entire PDF dependency stack in a memory safe language. I think you underestimate how many features PDF has.
2 comments

I wish that Apple today was a little more like the Apple that ruthlessly murdered the floppy disc and Flash.
Seriously though, I wonder why nobody really attempted to dethrone PDF yet. How hard can it be (famous last words) to design a document format that allows what people generally expect from a PDF, but without the multimedia and interactive parts that are dangerous?
Because the dangerous parts are not the multimedia and interactive parts. These parts are rarely used. Even if you remove these parts from your PDF reader it’s not a meaningful security improvement. Almost all exploits are in the boring 2D text/graphics/images parts.
Network effect. Most documents are PDF. You would need at least backward compatibility, which would mean opening doors to the existing problem.
Got it. So if I want to hack anything, check if it can open PDF files first.
You may have even more luck if your input gets injected into a prompt that gets executed by an agent having internet access.

Re security, there are many pdf viewers, so the rewrites exist, and some of them do not have the js execution engine and all that jazz that opens up all sorts of potential exploits.

Microsoft tried with (Open)XPS and failed
Firefox has been working on this and are making good headway over the last few years.
Considering they’ve also made pdf.js, I have hope.