-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undesired mouseover effect on links in PDF #283
Comments
I can reproduce this issue and I think it needs fixing. My best guess is that it relates to http://mpdf.github.io/reference/html-control-tags/annotation.html |
My mPDF version is 6.1.2 on Debian jessie. Seems similar to https://productforums.google.com/forum/#!topic/chrome/dSzZOneqhNc |
Here is a simple test example from mPDF 6.1.2: |
I've reported the issue to Google and linked to this GitHub issue. Pop-ups for annotations are also oversized relative to the content. If the pop-ups were fitted to the size of the link or annotation text and in less bright colours, as in Evince, I think this would make the PDF more readable in Chrome. |
Right, we're having the highlighting box (as per screenshot above) appear on all linked text - only on Chrome, and didn't used to happen - and we're not using any annotations, which I guess means this is something driven from Chrome's end. Cheers |
Because the yellow box on links looks exactly like the annotation box (please see example above) I think it likely that Chrome's PDF viewer is treating every link as an annotation, even when the document does not contain any annotations. |
example.pdf |
Thanks for your example, it does seem to be related to mPDF then. |
If it works without any issues in Adobe Reader it's the Google Chrome PDF viewer that should be updated. |
I had this problem as well but was able to fix it by removing the /Contents portion of the annotation generator since I don't need the yellow annotations box and can't think of any reason why I would need it. I'm using mpdf 5.7.4. In mpdf/mpdf.php I located this line and commented it out: |
Hi Kent, thanks for the workaround :-) Jake, I got no response from Google on the issue I reported, I doubt they are going to change Chrome because only PDFs made with mPDF seem to have the issue. |
I got here from google, I'm actually using html2pdf, started getting the unsightly yellow boxes a little while ago. @kentct's solution was still applicable, comment out the lines that denote the '/Contents' for the annotation. 👍 |
Thanks Tom, please file an issue on https://github.com/spipu/html2pdf/issues and link to this issue. Looks like there is some common ancestry from FPDF? Maybe the two projects can work together, I see they have an active community with a number of pull requests pending. |
Thanks for the fix Kent - now I just need to go regenerate 200 pdfs ;-) |
I am having the same issue as described above. Thanks for coming up with a fix Kent, unfortunately this won't work in my case since editing vendor files in production is a no-go in my environment. |
Have same issue with TcPDF 5.8.007 |
@danielhjames can you link to the Google Chrome issue you created? I wasn't able to find it when searching Chrome's support forum. |
Hi Jake, I definitely reported it via Chrome feedback but it seems this is not the same thing as filing an issue at the upstream project https://bugs.chromium.org/p/chromium/issues/list |
@danielhjames the way I helped get the Gmail PDF Viewer Encryption issue fixed was to open a topic in the Chrome Help Forums. It took a bit of time but it happened eventually. |
The yellow box on external links: indeed, I would prefer it removed. But the yellow box has a use case for things like mouseovers. ex.: https://doc.tiki.org/PluginMouseover Thanks! |
merge request for tecnickcom/TCPDF#60 for this issue |
Most likely: https://bugs.chromium.org/p/chromium/issues/detail?id=856331 |
Latest version of Chrome (Version 55.0.2883.95 (64-bit))
Mac OSX 10.10.5
MPDF 5.7.3
With a Chrome upgrade am now seeing an ugly yellow box appear on mouseover of all links in generated PDFs. The PDFs are fine in other browsers and native viewers, but not so hot in Chrome
I've attached a screenshot of the behaviour. It happens in new PDFs as well as ones created previously, so is Chrome related. Any thoughts on what could be causing it?
The text was updated successfully, but these errors were encountered: