Some hyperlinks and rest of line with the hyperlink is not shown
PDF file is here:
dc_iprcvisa.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot) Both hyperlinks will be shown
In this PDF are all hyperlinks wrong - two are not shown and one is badly positioned. Text after hyperlink is also gone - but can be selected and copied to clipboard. So apparently text is there, but not shown.
The PDFs violate the PDF spec, which says that paths are not allowed inside text objects (BT
...ET
). In the hyperlinks the blue underline path is drawn inside a text object. PDF.js can't handle this properly because the last point of the path changes the position of the text that is drawn next. Thus the URL strings appear in the wrong position on the page, or completely outside the page.
issue10542_reduced.pdf
Most helpful comment
The PDFs violate the PDF spec, which says that paths are not allowed inside text objects (
BT
...ET
). In the hyperlinks the blue underline path is drawn inside a text object. PDF.js can't handle this properly because the last point of the path changes the position of the text that is drawn next. Thus the URL strings appear in the wrong position on the page, or completely outside the page.issue10542_reduced.pdf