How come Android doesn't have a built in PDF viewer?

https://midwest.social/post/14629110

How come Android doesn't have a built in PDF viewer? - midwest.social

Forgive me for this stupid question. I just transitioned from iPhone to Pixel (GrapheneOS) and I’m curious why there isn’t a built in PDF viewer like on iPhone? It feels like you have to open things externally pretty often, but I figure there’s a reason for that. I haven’t used Android in many years and I recently developed an interest for the technical aspects of things, so again, do forgive this beginners question. Cheers y’all!

Retail Android ships with Google’s proprietary PDF viewer. GrapheneOS isn’t the default experience.

GrapheneOS has an actively maintained PDF viewer app though.

github.com/GrapheneOS/PdfViewer

GitHub - GrapheneOS/PdfViewer: Simple Android PDF viewer based on pdf.js and content providers. The app doesn't require any permissions. The PDF stream is fed into the sandboxed WebView without giving it access to content or files. CSP is used to enforce that the JavaScript and styling properties within the WebView are entirely static.

Simple Android PDF viewer based on pdf.js and content providers. The app doesn't require any permissions. The PDF stream is fed into the sandboxed WebView without giving it access to content or...

GitHub
Page scrolling works fine and dark mode doesn’t make sense…
Dark mode really starts to make sense when you’re looking at documents for 7-10 hrs/day almost every other day for a month or two