Bug 424779 - Embedded links not recognised in PDF file
Summary: Embedded links not recognised in PDF file
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.10.3
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-29 06:23 UTC by Leonov65
Modified: 2020-08-09 07:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
PDF file with bad hyperlinks (433.13 KB, application/pdf)
2020-07-29 06:23 UTC, Leonov65
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonov65 2020-07-29 06:23:33 UTC
Created attachment 130474 [details]
PDF file with bad hyperlinks

SUMMARY
Embedded hyperlinks in PDF received from reputable source not recognised.

STEPS TO REPRODUCE
1. Open problematic PDF.
2. When scrolling with browse tool hand does not change to pointed finger over hyperlink.
3. 

OBSERVED RESULT
Links operate same as ordinary text of document. They look like a hyperlink (highlighted contrasting colour, underlined) but do not work like one.
Cannot copy link location. Cannot click link and have it open in browser.

EXPECTED RESULT
To be able to copy link location or open link in browser.


SOFTWARE/OS VERSIONS

Linux/Ubuntu 18.04
Qt Version: 
Okular Flatpak 1.10.3 installed with all necessary resource platforms 2020-07-28.

ADDITIONAL INFORMATION
Same behaviour seen with other open source viewers:
-Evince 3.28.4-0ubuntu1.2 amd64 
-qpdfview 0.4.18.99~2106~64~ubuntu18.04.1
-xpdf 3.04-7 amd64
-Okular 1.3.3 (4:17.12.3-0ubuntu1)

Hyperlinks in problematic PDF file work normally using:
-Firefox 78.0.2 incorporated PDF viewer
-Foxit Reader free 2.4.4.0911
-Master PDF Editor 5.5.38

"pdfinfo" command gave the following information about the file.
Note errors in report. Note creator and producer.

$ pdfinfo 20200724.pdf
Title:          SSSS
Subject:        TTTT
Author:         RRRR
Creator:        Acrobat PDFMaker 20 for Word
Producer:       Adobe PDF Library 20.9.95
CreationDate:   Tue Jun 23 12:09:43 2020 AEST
ModDate:        Tue Jun 23 12:09:46 2020 AEST
Tagged:         yes
UserProperties: no
Suspects:       no
Form:           none
Syntax Error: Invalid object stream
Internal Error: xref num 730 not found but needed, try to reconstruct<0a>
JavaScript:     no
Pages:          6
Encrypted:      no
Page size:      595.32 x 841.92 pts (A4)
Page rot:       0
File size:      443527 bytes
Optimized:      yes
PDF version:    1.4

Below is a pdfinfo report from PDF file published December 2019 by same entity. Links function as expected in this file. Note creator and producer.

$ pdfinfo 20191219.pdf
Title:          PPPP
Subject:        QQQQ
Author:         RRRR
Creator:        Acrobat PDFMaker 19 for Word
Producer:       Adobe PDF Library 19.21.90
CreationDate:   Wed Dec 18 18:14:47 2019 AEDT
ModDate:        Thu Dec 19 13:20:11 2019 AEDT
Tagged:         yes
UserProperties: no
Suspects:       no
Form:           AcroForm
JavaScript:     no
Pages:          11
Encrypted:      no
Page size:      595.32 x 841.92 pts (A4)
Page rot:       0
File size:      2404379 bytes
Optimized:      no
PDF version:    1.4


Have seen problem in only one PDF file but same behaviour is repeated across several open source document viewers. Did not know where else to report possible bug.

Thank you for your interest.
Comment 1 newptcai 2020-08-06 11:46:15 UTC
I have noticed a similar problem. If I annotate something, then the hyperlinks stop working. I have to close the PDF and open it again for it to work.
Comment 2 Albert Astals Cid 2020-08-06 21:10:32 UTC
(In reply to newptcai from comment #1)
> I have noticed a similar problem. If I annotate something, then the
> hyperlinks stop working. I have to close the PDF and open it again for it to
> work.

You have noticed a problem that is not similar at all. Open a different bug about it.
Comment 3 Albert Astals Cid 2020-08-08 17:29:21 UTC
It's a poppler bug
https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/606

Will be fixed with poppler 20.09.0
Comment 4 Leonov65 2020-08-09 07:12:08 UTC
(In reply to Albert Astals Cid from comment #3)
> It's a poppler bug

Thank you for looking into the problem I reported.

Looking forward to Poppler 20.09.0