3 ms·
> Hey, dial back the blasphemy there. HTML is not PDF, it's usually made from text in the first place. Hey, dial back the blasphemy there. PDF is not an image,
by jsjohnst 8y ago
> Hey, dial back the blasphemy there. HTML is not PDF, it's usually made from text in the first place.
Hey, dial back the blasphemy there. PDF is not an image, it’s usually[0] made from text in the first place.
As someone who has a bunch of experience both creating and parsing PDFs, it’s definitely very doable to extract the text content and render it in a similar way on a terminal. Yes, parsing the PDF format is much more painful than average HTML, but these days there’s libraries commonly available to assist.
[0] unless the PDF is a famous redacted DOJ document, then it’s a poorly scanned collection of image crammed into a PDF container.