News for hackers. Stuff that matters.
Re:PDF Is the World's Most Important File Format by SigmundA on Friday May 03, 2019 @01:36PM (#19820442)
PDF is based on Postscript, it designed for print perfect output, its essentially a bunch of rendering commands for a printer its not supposed to be a word processing format that can be edited later its the final output from a word processor or whatever.
Re:PDF Is the World's Most Important File Format by mattnewton on Friday May 03, 2019 @01:58PM (#19820683)
Right, but somehow it gets used for all sorts of things that are never printed in offices everywhere.
Re:PDF Is the World's Most Important File Format by SigmundA on Friday May 03, 2019 @02:03PM (#19820724)
It gets printed to the screen for reading and still retains the text for searching. The ability to easily edit can actually be liability in many situations.

Its literally a replacement for paper documents, except you can search and view them on a computer and still hit print and get a great paper reproduction.

Word processing/editing has so much more going on, PDF actually removes features from postscript for security purposes, nobody wants to be sending word docs around just for viewing.

Re:PDF Is the World's Most Important File Format by kevin_thibedeau on Friday May 03, 2019 @04:16PM (#19821870)
Recovering coherent text strings from PDF is non-trivial. Paragraphs are merely implicit and hyphenation must be removed, among many other problems. Anything unusual like sub/superscripts or inline math will potentially end up as gibberish or missing.
Re:PDF Is the World's Most Important File Format by maxxxxx on Friday May 03, 2019 @04:28PM (#19821968)
I have spent weeks on an algorithm that would recreate words and paragraphs from letter rectangles and the space in between. Fun, fun, fun. Tables are even better. Page headers and footers then complete the insanity nicely.
Re:PDF Is the World's Most Important File Format by SigmundA on Friday May 03, 2019 @05:31PM (#19822478)
That has a lot to do with the program that created it, HTML can be bad to search to I mean try and index a react page.

It a better situation than OCRing a paper doc though.

Re:PDF Is the World's Most Important File Format by mattnewton on Monday May 06, 2019 @01:24PM (#19841653)
The alternative doesn’t have to be a word doc; I’d prefer, open office xml docs, google docs, markdown, and just plain old rich text half the time. The other half of use cases, graphically rich report-like things, HTML or a power point would have been better. I don’t want my content to be constrained to a paper format to be zoomed and scrolled around on a not-paper-sized screen with no support for reflows.