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 all,
we're building a streamlit component for visualising PDF documents, and we are facing an issue with the text layer, in particular, in certain cases, when the streamlit application contains several tabs (each tab is a iframe, running pdf.js, rouhgly) on Chrome it might happens that the minimum font size is not detected correctly making the textlayer not to be rendered anymore.
This discussion was converted from issue #18685 on September 03, 2024 06:40.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Attach (recommended) or Link to PDF file
Hi all,
we're building a streamlit component for visualising PDF documents, and we are facing an issue with the text layer, in particular, in certain cases, when the streamlit application contains several tabs (each tab is a iframe, running pdf.js, rouhgly) on Chrome it might happens that the minimum font size is not detected correctly making the textlayer not to be rendered anymore.
We've investigated the issue and, looking at the code
pdf.js/src/display/text_layer.js
Line 488 in 5b29e93
we were wondering whether is acceptable to return 0 as minimum font size.
Here a project that reproduce the issue.
Web browser and its version
Chrome
Operating system and its version
N/A
PDF.js version
4.3.136
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
What is the expected behavior?
The expected behaviour is to have selecteable text in all pdf in all tabs
What went wrong?
It seems an issue with the min font size. See here.
Link to a viewer
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions