Skip to content

Conversation

@jsonn
Copy link

@jsonn jsonn commented May 30, 2025

This is useful for server-side rendering of PDFs that can still use normal browser interactions like text selection. For the sake of Firefox, mark the text as absolutely positioned in this case, otherwise the text extraction won't get line breaks when copied.

This is a proof-of-concept for discussion on whether this is a useful feature to include, it needs more testing for stroke/clip code paths.

This is useful for server-side rendering of PDFs that can still use
normal browser interactions like text selection. For the sake of
Firefox, mark the text as absolutely positioned in this case, otherwise
the text extraction won't get line breaks when copied.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant