News for hackers. Stuff that matters.
Re:What's so hard about PDF text extraction? by tolmasky on Tuesday March 03, 2020 @02:22PM (#22477833)
This is why iPhone didn't initially ship with double-tap to zoom for PDF paragraphs (like it had for blocks on web pages). I know because I was assigned the feature, and I went over to the PDF guy to ask how I would determine on an arbitrary PDF what was probably a "block" (paragraph), and I got a huge explanation on how hard it would be. I relayed this to my manager and the bug was punted.

Edit: To add a little more color, given that none of us was (or at least certainly I wasn't) an expert on the PDF format, we had so far treated the bug like a bug of probably at-most moderate complexity (just have to read up on PDF and figure out what the base unit is or whatever). After discovering what this article talks about, it became evident that any solution we cobbled together in the time we had left would really just be signing up for an endless stream of it-doesn't-work-quite-right bugs. So, a feature that would become a bug emitter. I remember in particular considering one of the main use cases: scientific articles that are usually in two columns, AND also used justified text. A lot of times the spaces between words could be as large as the spaces between columns, so the statistical "grouping" of characters to try to identify the "macro rectangle" shape could get tricky without severely special-casing for this. All this being said, as the story should make clear, I put about one day of thought into this before the decision was made to avoid it for 1.0, so far all I know there are actually really good solutions to this. Even writing this now I am starting to think of fun ways to deal with this, but at the time, it was one of a huge list of things that needed to get done and had been underestimated in complexity.

Re:What's so hard about PDF text extraction? by Alex3917 on Tuesday March 03, 2020 @02:47PM (#22478085)
> I know because I was assigned the feature, and I went over to the PDF guy to ask how I would determine on an arbitrary PDF what was probably a "block" (paragraph), and I got a huge explanation on how hard it would be.

The funny thing is that creating a universal algorithm to convert PDFs and/or HTML to plaintext is probably comparable in difficulty to building level 5 self-driving cars, and would accrue at least as much profit to any company that can solve it. But there are hundreds of billions of dollars going into self-driving cars, and like zero dollars going into this problem.

Re:What's so hard about PDF text extraction? by tolmasky on Tuesday March 03, 2020 @02:59PM (#22478200)
What are the groups that would benefit most from the PDF-to-HTML conversion? Who are the customers that would drive this profit? I tried to make those sentences not sound contentious but unfortunately they do, but I am genuinely curious about this space and who is feeling the lack of this technology most.
Re:What's so hard about PDF text extraction? by greycol on Tuesday March 03, 2020 @03:26PM (#22478400)
Almost any business that has physical suppliers or business customers.

PDF is de-facto standard for any invoicing, POs, quotes, etc.

If you solve the problem you can effectively programmatically deal with invoicing/payments/ large parts of ordering/dispensing. It's a no brainer to add it on to almost any financial/procurement software that deals with inter business stuff.

Any small-medium physical business can probably half their financial department if you can dependably solve this issue.

Re:What's so hard about PDF text extraction? by ofrzeta on Tuesday March 03, 2020 @07:19PM (#22480087)
Starting November 2020 in the EU machine-readable invoices will be mandatory in the public sector (https://eur-lex.europa.eu/eli/dir/2014/55/oj).

As far as I understand there are at least two standards (I know of in Germany): XRechnung and ZUGFeRD/Factur-X (which is PDF A/3 with embedded XML).

http://fnfe-mpe.org/factur-x/factur-x_en/

Re:What's so hard about PDF text extraction? by sabas_ge on Wednesday March 04, 2020 @02:17PM (#22486928)
Electronic invoicing in Italy is a thing since a couple of years, mandatory since Jan 1st 2019...
Re:What's so hard about PDF text extraction? by f3r3nc on Wednesday March 04, 2020 @05:22AM (#22482590)
seems to be only for the electronic invoicing in public procurement
Re:What's so hard about PDF text extraction? by Fire-Dragon-DoL on Thursday March 05, 2020 @12:31AM (#22491204)
No, it's now for everyone. It was like that for a while
Re:What's so hard about PDF text extraction? by innomatics on Tuesday March 03, 2020 @04:08PM (#22478735)
A business that invests in building a machine that reads data, produced by a 3rd party machine, using format intended for lay humans to read, is not investing in the right tech IMO.

Small-mediums should be looking to consolidate buying through a few good suppliers and working with them directly to automate process, or adopting interchange formats.

Problem for some small-business is the cost (process changes, licencing etc) of adopting interchange formats and working with large vendors is prohibitive at their scale e.g. the airline BSP system.

I agree that solving the problem generally i.e. replacing an accounts payable staff person capable of processing arbitrary invoice documents will be comparable to self-driving in difficulty.

If a company deals with a lot of a single type of PDF, then the approach could be economical. I am actually involved in a project looking at doing this with AWS Textract.

Re:What's so hard about PDF text extraction? by speedplane on Wednesday March 04, 2020 @01:24AM (#22481615)
> A business that invests in building a machine that reads data, produced by a 3rd party machine, using format intended for lay humans to read, is not investing in the right tech IMO.

Building machines that understand formats that are understood by humans is exactly what we should be doing. People should read, write, and process information in a format that is comfortable and optimized to them. Machines should bend to us, we should not bend to them.

If businesses only dealt with machine readable formats, everyone's computer would still be using the command line.

And there's real condescension in your post:

> Small-mediums should be looking to consolidate buying through a few good suppliers and working with them directly to automate process

You're saying that businesses need to change their business to accommodate data formats, but it should be the other way around.

Re:What's so hard about PDF text extraction? by kbutler on Wednesday March 04, 2020 @06:27PM (#22489277)
There has to be compromise.

The proliferation of computers in business over the last 50 years is precisely because businesses can save money/expand capacity by adapting the business processes to the capabilities of the computers.

Over that time, computers have become more friendly to humans, but businesses have adapted and humans been trained to use what computers can do.

Re:What's so hard about PDF text extraction? by tastyminerals on Wednesday March 04, 2020 @01:13AM (#22481587)
Yes, most invoices are in PDF but only about 40% of them are native PDF meaning they are actual documents not scanned images converted to PDFs. There are are also compound PDF invoices which contain images. So, in order to extract data from them, one needs not only good PDF parser but an OCR engine too.
Re:What's so hard about PDF text extraction? by dreamcompiler on Wednesday March 04, 2020 @11:42AM (#22485281)
This is a huge pet peeve of mine. Most invoices are generated on a computer (often in Word) but a huge fraction of the people who generate them don't know how to export to a PDF. So they print the invoice on paper, scan it back in to a PDF, and email that to you. Thus the proliferation of bitmap PDFs.
Re:What's so hard about PDF text extraction? by speedplane on Wednesday March 04, 2020 @01:19AM (#22481599)
> So, in order to extract data from them, one needs not only good PDF parser but an OCR engine too.

You can go further. Invoices often contain block sections of text with important terms of the invoice, such as shipping time information, insurance, warranties, etc. To build something that works universally, you also need very good natural language processing.

Re:What's so hard about PDF text extraction? by thaumasiotes on Wednesday March 04, 2020 @01:21AM (#22481606)
If you're using an OCR engine to understand PDFs that are nothing but a scanned image embedded in a PDF... what do you need a PDF parser for? You can always just render an image of a document and then use that.
Re:What's so hard about PDF text extraction? by speedplane on Wednesday March 04, 2020 @01:29AM (#22481631)
> If you're using an OCR engine to understand PDFs that are nothing but a scanned image embedded in a PDF... what do you need a PDF parser for?

This should be obvious, but the answer is because OCR engines are not terribly accurate. If you have a native PDF, you're far better off parsing the PDF then converting to an image and OCRing. But if OCR ever becomes perfect, then sure.

Re:What's so hard about PDF text extraction? by tastyminerals on Wednesday March 04, 2020 @01:41AM (#22481674)
For accuracy and speed. The market SOTA Abbyy is far from being accurate.
Re:What's so hard about PDF text extraction? by speedplane on Wednesday March 04, 2020 @01:48AM (#22481705)
> The market SOTA Abbyy is far from being accurate.

While Abbyy is likely the best, it's also incredibly expensive. Roughly on the order of $0.01/page or maybe at best a tenth of that in high volume.

For comparison, I run a bunch of OCR servers using the open source tesseract library. The machine-time on one of the major cloud providers works out to roughly $0.01 for 100-1000 pages.

Re:What's so hard about PDF text extraction? by bhanhfo on Wednesday March 04, 2020 @07:57AM (#22483327)
OCR.space charges only $10 for 100,000 conversions. The quality is good, but not as good as Abbyy.
Re:What's so hard about PDF text extraction? by minerals29 on Wednesday March 04, 2020 @02:25AM (#22481843)
It is the best and this is one of the reasons why PDF extraction is hard :)
Re:What's so hard about PDF text extraction? by Alex3917 on Tuesday March 03, 2020 @03:22PM (#22478366)
So I have a lot of experience with basically the same problem just from working on this: https://www.prettyfwd.com. As an example of the opportunity size just in the email domain, the amount of personal non-spam email sent every day is like 100x the total size of Wikipedia, but nothing is really done with any of this information because of this challenge. Basically applications are things like:

- Better search engine results

- Identifying experts within a company

- Better machine translation

- Finding accounting fraud

- Automating legal processes

For context, the reason why Facebook is the most successful social network is that they're able to turn behavioral residue into content. If you can get better at taking garbage data and repackaging it into something useful, it stands to reason that there are lots of other companies the size of Facebook that can be created.

Re:What's so hard about PDF text extraction? by K0SM0S on Tuesday March 03, 2020 @04:01PM (#22478681)
I often ponder how much of the "old world" will get "digitalized" — translated in numeric form, bits. And how much will just disappear. The question might seem trivial if you think of books, but now think of architecture, language itself (as it evolves), etc.

There's almost no question in my mind that most new data will endure in some form, by virtue of being digital from day 1.

The endgame for such a company, imho, is to become the "source entity" of information management (in abstracted form), whose two major products are one to express this information in the digital space, and the other in the analog/physical space. You may imagine variations of both (e.g. AR/VR for the former).

Kinda like language in the brain is "abstract" (A) (concept = pattern of neurons firing) and then speech "translates" into a given language, like English (B) or French (C) (different sets of neurons). So from A you easily go to either B or C or D... We've observed that Deep Learning actually does that for translation (there's a "new" "hidden" language in the neural net that expresses all human languages in a generic form of sorts, i.e. "A" in the above example).

The similarities of the ontology of language, and the ontology of information in a system (e.g. business) are remarkable — and what you want is really this fundamental object A, this abstract form which then generates all possible expressions of it (among which a little subset of ~1,000 gives you human languages, a mere 300 active iirc; and you might extend that into any formal language fitting the domain, like engineering math/physics, programming code, measurements/KPI, etc.

It's a daunting task for sure but doable because the space is highly finite (nothing like behavior for instance; and you make it finite through formalization, provided your first goal is to translate e.g. business knowledge, not Shakespeare). It's also a one-off thing because then you may just iterate (refine) or fork, if the basis is sound enough.

I know it all sounds sci-fi but having looked at the problem from many angles, I've seen the PoC for every step (notably linguistics software before neural nets was really interesting, producing topological graphs in n dimensions of concepts e.g. by association). I'm pretty sure that's the future paradigm of "information encoding" and subsequent decoding, expression.

It's just really big, like telling people in the 1950's that because of this IBM thing, eventually everybody will have to get up to speed like it's 1990 already. But some people "knew", as in seeing the "possible" and even "likely". These were the ones who went on to make those techs and products.

Re:What's so hard about PDF text extraction? by IceKarma on Wednesday March 04, 2020 @04:03AM (#22482208)
Digital data is arguably more fragile than analogue, offline, paper (or papyrus, or clay tablet) media. We have documents over 3000 years old that can still be read. Meanwhile, the proprietary software necessary to access many existing digital data formats is tied to obsolete hardware, working examples of which may no longer exist, emulators for which may not exist, and insufficient documentation may exist to even enable their creation. Just as one example, see the difficulty in enabling modern access to the BBC's 1986 Domesday Project.
Re:What's so hard about PDF text extraction? by bjonnh on Tuesday March 03, 2020 @10:32PM (#22480991)
Academics and other people that rely on scientific publications. Most of the world's knowledge in science is locked into PDFs and screenshots (or even pictures) of manufacturer's (often proprietary) software... So extracting it in a more structured way would be a win (so HTML may not be best). On a related note, I've seen people using Okular to convert PDF tables to a usable form (to be honest its table extraction tool is one of the best i've seen despite being pretty manual).
Re:What's so hard about PDF text extraction? by speedplane on Wednesday March 04, 2020 @01:41AM (#22481672)
> What are the groups that would benefit most from the PDF-to-HTML conversion? Who are the customers that would drive this profit? I tried to make those sentences not sound contentious but unfortunately they do, but I am genuinely curious about this space and who is feeling the lack of this technology most.

Legal technology. Pretty much everything a lawyer submits to a court is in PDF, or is physically mailed and then scanned in as PDF. If you want to build any technology that understands the law, you have to understand PDFs.

Re:What's so hard about PDF text extraction? by dscpls on Tuesday March 03, 2020 @04:13PM (#22478778)
Organisations that have existing business processes to publish to print and pdf but now want to publish in responsive formata for mobile or even desktop web.

Changing their process might be more expensive than paying a lot of money for them to carry on as is for a few more years while getting the benefit of modern eyes on their content.

Edit: concrete example would be government publications like budget narrative documents.

Re:What's so hard about PDF text extraction? by tony0x02 on Tuesday March 03, 2020 @03:27PM (#22478410)
The patent office?
Re:What's so hard about PDF text extraction? by aidos on Tuesday March 03, 2020 @03:15PM (#22478326)
I’ve done a bunch of this work myself and while it’s a bit of a pain to do in general, you can make some reasonable attempts at getting something workable for your use cases.

PDFs are incredibly flexible. Text can be specified in a bunch of ways. Glyphs can be defined to the nth degree. Text sometimes isn’t text at all. There’s no layout engine and everything is absolutely positioned. Fonts in PDF’s are insane because they’re often subset so they only include the required glyphs and the characters are remapped back to 1, 2, 3 etc instead of usual ascii codes.

Re:What's so hard about PDF text extraction? by kbenson on Tuesday March 03, 2020 @03:29PM (#22478431)
> Fonts in PDF’s are insane because they’re often subset so they only include the required glyphs and the characters are remapped back to 1, 2, 3 etc instead of usual ascii codes.

I've actually seen obfuscation used in a PDF where they load in a custom font that changes the character mapping, so the text you get out of the PDF is gibberish, but the fonts displayed on rendering are correct (a simple character substitution cipher).

The important thing to remember whenever you think something should be simple, is that someone somewhere has a business need for it to be more complicated, so you'll likely have to deal with that complication at some point.

Re:What's so hard about PDF text extraction? by ccozan on Tuesday March 03, 2020 @03:45PM (#22478553)
That's why the only "reliable" way to extract text is to perform an OCR of the pdf rendering which is exactly what ABBYY is doing.
Re:What's so hard about PDF text extraction? by siftrics on Tuesday March 03, 2020 @03:52PM (#22478609)
I’m the founder of a startup that is doing this, as well. We strive to be as simple and easy as possible to use.

If you care to check us out: https://siftrics.com/

Re:What's so hard about PDF text extraction? by Defenestresque on Tuesday March 03, 2020 @04:51PM (#22479061)
Your website demo video is impressive and I can imagine there are many businesses that would save a lot of time and man-hours by incorporating a solution like this.

I've often thought about creating products like these but as a one-man operation I am daunted by the "getting customers" part of the endeavour. How do you get a product like this into the hands of people who make the decisions in a business? (For anyone, not just OP). PPC AdWords campaigns? Cold-calling? Networking your ass off? Pay someone? Basically, how does one solve the "discoverability problem"?

Re:What's so hard about PDF text extraction? by siftrics on Tuesday March 03, 2020 @05:40PM (#22479420)
Surprisingly, Hacker News has been our number one source of leads. We tried Google Ads and Reddit Ads, but the signup rate was literally three orders of magnitude lower than organic traffic from Hacker News and Reddit.
Re:What's so hard about PDF text extraction? by appleiigs on Tuesday March 03, 2020 @06:05PM (#22479591)
Is your product only on the cloud? My privacy/internet security team won't let me use products that save customer or vendor data on the cloud because you might get hacked. Only giants, like Microsoft, have been approved after an evaluation.
Re:What's so hard about PDF text extraction? by siftrics on Tuesday March 03, 2020 @07:37PM (#22480183)
More than half of our customers have asked to be able to skip our cloud and go directly to their database. We’re working on this right now. It’s scheduled to be released this week, so keep an eye open.

In the meantime, if you have any questions, feel free to send me an email at [email protected]. I’d love to hop on the phone or do a Zoom meeting or a Google Hangouts.

Re:What's so hard about PDF text extraction? by innomatics on Tuesday March 03, 2020 @04:11PM (#22478759)
Will check it out thanks, we had evaluated ABBYY but it didn't suit. Does your product do something like key value or table detection?
Re:What's so hard about PDF text extraction? by siftrics on Tuesday March 03, 2020 @04:13PM (#22478780)
We do table recognition and pride ourselves on being better at it than ABBYY. We can handle variable number of rows in a table and we take that into account when determining the position of other text on the page.

Feel free to email me at [email protected] with any questions. We can setup a phone call, zoom meeting, or google hangouts too, if you’d like.

Re:What's so hard about PDF text extraction? by 72deluxe on Tuesday March 03, 2020 @06:40PM (#22479829)
I like how your demo is clear and also in Linux! Surprising.

The page is clear and easy to understand, looks good. Well done.

Re:What's so hard about PDF text extraction? by siftrics on Tuesday March 03, 2020 @08:27PM (#22480405)
Thank you for the kind words!

I like to say that anyone with a good old ThinkPad and an internet connection can mint fortunes and build empires :-)

Re:What's so hard about PDF text extraction? by malikolivier on Tuesday March 03, 2020 @08:37PM (#22480460)
How is support for languages other than English?

I am especially thinking about Japanese. Our company could probably find good uses of such service if it had Japanese support.

Re:What's so hard about PDF text extraction? by siftrics on Tuesday March 03, 2020 @09:51PM (#22480803)
Yes, Japanese is supported! Almost all languages are supported.

If you have any questions or need help trying it out, please email me at [email protected]. We can hop on the phone, too, if you'd like.

Re:What's so hard about PDF text extraction? by tastyminerals on Wednesday March 04, 2020 @01:21AM (#22481607)
Gini GmbH performs document processing for almost all German banks and for many accounting companies. For banks it does realtime invoice photo processing -- OCR and extraction of amount, bank information, receiver etc. For accounting it extracts all kind of data from a PDF. Unfortunately, only for German language market. But here you go, ABBYY by far is not the only one. In fact ABBYY does only OCR and has some mediocre table detection. That's it.
Re:What's so hard about PDF text extraction? by zmix on Tuesday March 03, 2020 @07:40PM (#22480195)
I do not remember which of the two it was, but 'poppler' or 'pdfbox' (they may use the same backend) created great HTML output, with absolute positions. They also have an XML mode, which is easily transformed.

Of course, there is absolutely no semantics, just display.

Re:What's so hard about PDF text extraction? by aidos on Tuesday March 03, 2020 @03:46PM (#22478568)
That’s actually often just a consequence of the subsetting (I think). Believe it or not, you can often rebuild the cmaps using information in the pdf to fix the mapping and make the extraction work again.
Re:What's so hard about PDF text extraction? by kbenson on Tuesday March 03, 2020 @05:22PM (#22479291)
> That’s actually often just a consequence of the subsetting (I think).

I would believe that. It was a pretty poor obfuscation method as they go, if it was intended for that.

> Believe it or not, you can often rebuild the cmaps using information in the pdf to fix the mapping and make the extraction work again.

Oh, I did. That's the flip side of my second paragraph above. When there's a business need to work around complications or obfuscations, that will also happen. :)

Re:What's so hard about PDF text extraction? by speedplane on Wednesday March 04, 2020 @01:44AM (#22481689)
> PDFs are incredibly flexible. Text can be specified in a bunch of ways. Glyphs can be defined to the nth degree. Text sometimes isn’t text at all. There’s no layout engine and everything is absolutely positioned.

Can't stress this enough. The next time you open a multi-column PDF in adobe reader and it selects a set of lines or a paragraph in the way you would expect, know that there is a huge amount of technology going on behind the scenes trying to figure out the start and end of each line and paragraph.

Re:What's so hard about PDF text extraction? by speedplane on Wednesday March 04, 2020 @01:39AM (#22481664)
> The funny thing is that creating a universal algorithm to convert PDFs and/or HTML to plaintext is probably comparable in difficulty to building level 5 self-driving cars, and would accrue at least as much profit to any company that can solve it. But there are ... like zero dollars going into this problem.

Converting PDFs to HTML well is a very hard problem, but hard by itself to create a very big company. When processing PDFs or documents generally, the value is not in the format, it's in the substantive content.

The real money is not going from PDF to HTML, but from HTML (or any doc format) into structured knowledge. There are plenty of companies trying to do this (including mine! www.docketalarm.com), and I agree it has the potential to be as big as self-driving cars. However, technology to understand human language and ideas is not nearly as well developed as technology to understand images, video, and radar (what self-driving care rely on).

The problem is much more difficult to solve than building safer-than-human self-driving cars. If you can build a machine that truly understands text, you have built a general AI.

Re:What's so hard about PDF text extraction? by samplatt on Tuesday March 03, 2020 @08:47PM (#22480507)
>like zero dollars going into this problem

There's a lot more than zero dollars going into this... it's just that the end result is universally something that's "good enough for this one use-case for this one company" and that's as far as it gets.

Re:What's so hard about PDF text extraction? by jimmaswell on Tuesday March 03, 2020 @02:57PM (#22478180)
Rendering the document to an image and using OCR on it would bypass a lot of trouble trying to make sense of the source, wouldn't it?
Re:What's so hard about PDF text extraction? by Alex3917 on Tuesday March 03, 2020 @03:06PM (#22478265)
Not really, it's just a different set of challenges. The original article sums it up well, in terms of a lack of text-order hints. I haven't really tried incorporating OCR approaches at all, but I suspect they could probably be used to detect hidden text.

The basic issue imho is that NLP algorithms are very inaccurate even with perfect input. E.g. even with perfect input, they're maybe only 75% accurate. And even an a text-processing algorithm that's like 99.9% accurate will yield input to your NLP algorithms that's like 50% accurate, so any results will be mostly unusable.

Re:What's so hard about PDF text extraction? by tastyminerals on Wednesday March 04, 2020 @01:35AM (#22481654)
NLP algorithms are just fine. It is the combination of regexes, NLP and deep learning that allows you to achieve good extraction results. So, basically OCR / pdf parser -> jpeg/xml/json -> regexes + NLP / DL extractor.
Re:What's so hard about PDF text extraction? by bitL on Tuesday March 03, 2020 @04:27PM (#22478864)
Semantic segmentation to identify blocks and OCR to convert to text - I think OneNote is already doing that. PDF is a horrible format for representing text, though PostScript is even worse.
Re:What's so hard about PDF text extraction? by Ididntdothis on Tuesday March 03, 2020 @03:24PM (#22478387)
“The funny thing is that creating a universal algorithm to convert PDFs and/or HTML to plaintext is probably comparable in difficulty to building level 5 self-driving cars, ”

At least :)

Re:What's so hard about PDF text extraction? by perl4ever on Tuesday March 03, 2020 @06:44PM (#22479859)
Since you can always print a PDF to a bitmap and use OCR, I assume you're implicitly asking for something that does substantially better. How much better, and why?
Re:What's so hard about PDF text extraction? by BigBubbleButt on Tuesday March 03, 2020 @05:18PM (#22479266)
> The funny thing is that creating a universal algorithm to convert PDFs and/or HTML to plaintext...would accrue at least as much profit [as self-driving cars] to any company that can solve it.

Can you explain a bit more about why this is so valuable? I don't know anything about this industry.

Re:What's so hard about PDF text extraction? by dandelo1953 on Tuesday March 03, 2020 @06:26PM (#22479737)
Does this mean some abstraction is lost between the creation phase and final "save to pdf" phase? It'd seem ridiculous to not easily be able to track blocks while it's a WIP.....
Re:What's so hard about PDF text extraction? by dreamcompiler on Wednesday March 04, 2020 @11:36AM (#22485229)
Except the stakes are lower. Nobody dies if a PDF extraction isn't perfect.
Re:What's so hard about PDF text extraction? by calf on Tuesday March 03, 2020 @05:25PM (#22479322)
I don't know if PDF has truly evolved from its desktop publishing origins, but it is a terrible format because it no longer contains the higher level source information that you would have in an InDesign or a LaTeX file. PDF/Postscript were meant to represent optical fidelity and thus are too low-level abstractions for a lot of end-user, word processing tasks (such as detecting layout features), and thus trying to reverse engineer the "design intent" from them feels like doing work that is unecessarily tedious. But that's the way it seems to be given the popularity of the format.
Re:What's so hard about PDF text extraction? by rbobby on Tuesday March 03, 2020 @06:04PM (#22479582)
> double-tap to zoom

Why wouldn't you just zoom with the center point being where the tap occurred?

Re:What's so hard about PDF text extraction? by abiogenesis on Tuesday March 03, 2020 @07:00PM (#22479971)
That's probably what they did for v1.0 after they saw it is not that easy to zoom such that the whole paragraph always fits into the visible area.
Re:What's so hard about PDF text extraction? by tolmasky on Wednesday March 04, 2020 @07:26AM (#22483117)
Where to center to is only one vector, the other is how much to zoom: ideally it’s such that the text block fits on the screen. But again, that requires knowing the bounds of the text block. Zooming by a constant wherever you tap is a much less useful feature for text (vs. a map for instance), but I think it’s what we defaulted to (can’t remember if it was that of just nothing).