Skip to content
Discussion options

You must be logged in to vote

Sounds like a major challenge. Columnar selection is easy in VS Code because it's using a fixed-width font (at least by default). PDF files typically use variable-width fonts, so unless you're rendering a table, there no such thing as a column. You'll have to deal with characters that are partially in the selection range and partially outside.

ngx-extended-pdf-viewer in general and pdf.js in particular are ill prepare to support such a selection because they use the default text selection of the browser. You'd have to implement a non-standard selection. I suppose that's possible, but it needs some programming. The selection API (https://developer.mozilla.org/en-US/docs/Web/API/Selection) …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wmmaintz
Comment options

Answer selected by wmmaintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants