News for hackers. Stuff that matters.
Re:What's so hard about PDF text extraction? by oever on Monday September 14, 2020 @04:19AM (#24467959)
Always use PDF/A-1a (Tagged PDF) which contains the text in accessible format. For many governments this a legal requirement.

With tagged PDF it's easy to get the text out.

Re:What's so hard about PDF text extraction? by brodo on Monday September 14, 2020 @04:53AM (#24468147)
LaTeX does not support PDF/A btw.
Re:What's so hard about PDF text extraction? by ejfiskbkkd on Monday September 14, 2020 @06:06AM (#24468500)
Not by default, but the pdfx package enables this, Peter Selinger has a nice guide: https://www.mathstat.dal.ca/~selinger/pdfa/
Re:What's so hard about PDF text extraction? by ivan_ah on Monday September 14, 2020 @09:01AM (#24469589)
The linked instructions cover PDF/A-1b (have plain text version of contents), but Tagged PDF is more than that -- it's about encoding the structure of the document.

There is a POC package for producing Tagged PDF here https://github.com/AndyClifton/accessibility but it's not a complete solution yet.

Here is an excellent review article that talks about all the other options for producing Tagged PDFs from LaTeX (spoiler — there is no solution currently): https://umij.wordpress.com/2016/08/11/the-sad-state-of-pdf-a... via https://news.ycombinator.com/item?id=24444427

Re:What's so hard about PDF text extraction? by ulucs on Monday September 14, 2020 @06:08AM (#24468508)
It's not automatic, but also not that difficult to support

https://www.mathstat.dal.ca/~selinger/pdfa/#3

Re:What's so hard about PDF text extraction? by amai on Friday September 18, 2020 @05:16AM (#24514641)
"The sad state of PDF-Accessibility of LaTex Documents"

https://news.ycombinator.com/item?id=24444427

Re:What's so hard about PDF text extraction? by fomine3 on Wednesday September 16, 2020 @02:54AM (#24490201)
It's better format but still less accessible for machine translators. Most translating system don't support PDF or only limited support.
Re:What's so hard about PDF text extraction? by PostPlummer on Monday September 14, 2020 @05:32AM (#24468310)
> For many governments this a legal requirement.

As in Healthcare.

Re:What's so hard about PDF text extraction? by mmm_grayons on Monday September 14, 2020 @06:50AM (#24468713)
I'm confused as to what this comment means. Would you please clarify it?
Re:What's so hard about PDF text extraction? by 3131s on Monday September 14, 2020 @07:23AM (#24468898)
Re:What's so hard about PDF text extraction? by mmm_grayons on Monday September 14, 2020 @10:18AM (#24470425)
Is he implying that providing healthcare is a legal requirement for most governments? If so, that seems off-topic.
Re:What's so hard about PDF text extraction? by dqv on Monday September 14, 2020 @10:48AM (#24470785)
They are saying that, like many governments, healthcare requires the use of the PDF/A-1a standard.
Re:What's so hard about PDF text extraction? by PostPlummer on Tuesday September 15, 2020 @01:41AM (#24478208)
That is it.
Re:What's so hard about PDF text extraction? by Joker_vD on Monday September 14, 2020 @11:17AM (#24471172)
You mean, like many (non-US) governments, (the US) healthcare requires the use of the PDF/A-1a? It's just a somewhat bizarre contraposition: "Like many animals, Helianthus annuus needs water to survive". Wait, but it's a plant, right? "Yes, and it needs water, just like animals".
Re:What's so hard about PDF text extraction? by dqv on Monday September 14, 2020 @11:40AM (#24471445)
I just assumed that they meant that there are many healthcare orgs that require this standard.
Re:What's so hard about PDF text extraction? by jtbayly on Monday September 14, 2020 @07:18AM (#24468871)
As (it also is) in healthcare.
Re:What's so hard about PDF text extraction? by dwd on Monday September 14, 2020 @07:10AM (#24468830)
I'm surprised no ever uses XDP.

A flattened XFA/XDP PDF (no interactive elements) is more or less a PDF/A.

Re:What's so hard about PDF text extraction? by jooize on Monday September 14, 2020 @08:27AM (#24469274)
Do popular tools support creating XDP PDF?