I went on a google quest about this topic. Mapping my way through postscript, file encoding, pdf, xml, json. I eventually found my way onto a format that was right under my nose all along that kind of does all this. epub! Can extract to plain text, web, pdf, view natively, it&#x27;s comprised of layers that you can use or not use, etc. Submitted it as it&#x27;s own topic: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10563472" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10563472</a>