Timotronadon
Timotronadon

Reputation: 365

Does PDF.js extract any page styling information?

I'm in a situation where I need to distinguish whether or not a PDF has a certain layout after scanning the document for text. Is this possible with PDF.js and if so where would I find this information?

Upvotes: 0

Views: 263

Answers (1)

Ari Fordsham
Ari Fordsham

Reputation: 2515

Unfortunately, PDFs consist of very low-level drawing commands, and as such it is very difficult to extract any formatting information from them, no matter what tool/library. (See for example, here)

Upvotes: 1

Related Questions