You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to add filtering functionality to the Page's TextContent. When onGetTextSuccess returns modified data, this data will be used for the text content of page.
It is will be really useful for badly exported PDF with text columns. For example, if pdf contains page with two columns, but text misplaced and PDF Text Contents have structure like
or another weird cases (try to select text from Device Information to the table contents from this PDF). I can detect those cases programmatically and correct them.
Another case is for rendering texts such as I²C or H2O
If you're ok with those additions I will submit pull request.
The text was updated successfully, but these errors were encountered:
Hmmm. I have nothing against it, but I wonder how it would look like. Would you share some potential implementation for me to get the idea on what you're trying to achieve?
Hey @apla,
As of v3.0.0, react-pdf supports custom text rendering. You are given as much data as I have myself about text items to render. Sadly, there's no such thing as row/column in PDFs, only x and y positions, but I'd love to hear what you think!
Hi, I would like to add filtering functionality to the
Page
'sTextContent
. WhenonGetTextSuccess
returns modified data, this data will be used for the text content of page.It is will be really useful for badly exported PDF with text columns. For example, if pdf contains page with two columns, but text misplaced and PDF Text Contents have structure like
or another weird cases (try to select text from
Device Information
to the table contents from this PDF). I can detect those cases programmatically and correct them.Another case is for rendering texts such as I²C or H2O
If you're ok with those additions I will submit pull request.
The text was updated successfully, but these errors were encountered: