PDF is being used wrongly. For information exchange, data should be AUTHORED in a parseable format with a schema.
Then PDF should be generated from this as a target format.
There is a solution: xml, xsl-fo.
PDF is being used wrongly. For information exchange, data should be AUTHORED in a parseable format with a schema.
Then PDF should be generated from this as a target format.
There is a solution: xml, xsl-fo.
I should add that our documents were not run-of-the-mill: they were grammars, and sometimes included non-Roman fonts (Bangla) and right-to-left text (Arabic and Thaana scripts). A lot of things came together at just the right time, like XeTeX (think Unicode-aware LaTeX) and good Nasta'liq fonts. Most people don't have those problems :-).
1. https://xmlgraphics.apache.org/fop/ 2. https://www.princexml.com/
> There is a solution: xml, xsl-fo.
You're right about that, but sadly years of "xml-abuse" in the early naughts has given xml a bad reputation. So much so that other, inferior, markups were created like json and yaml. We ain't ever going back.Meanwhile, pdf just worked-- until you the first time you crack it open and see what's inside the pdf file. I'll never forget the horror after I committed to a time-critical project where I claimed... "Oh, I'll just extract data from the PDF, how bad could it possibly be!"
Bad programmers, as usual, frustrated by their own badness.
Today's coders want us to use Jackson Pollock Object Notation everywhere for everything.
> We ain't ever going back.
Not so, friend. ODF and DOCX are XML. And these formats won't become JPON anytime soon.