Skip to content
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

Math rendering problems #8224

Closed
marozols opened this issue Apr 1, 2017 · 3 comments
Closed

Math rendering problems #8224

marozols opened this issue Apr 1, 2017 · 3 comments

Comments

@marozols
Copy link

marozols commented Apr 1, 2017

PDF.js often has trouble rendering mathematical expressions in PDF documents that are compiled from LaTeX. Particularly affected are summation signs (\sum), square roots (\sqrt), tensor products (\otimes), and brackets (\langle, \rangle, (, ) etc.). They are often stretched vertically way too much. This effect is diminished if one zooms in sufficiently. This problem is quite pervasive and it seems to affect a large fraction of PDF files on the arXiv repository. Below are several examples from a document where the problem is particularly noticeable.

Link to PDF file (or attach file here): https://arxiv.org/pdf/1703.08346.pdf

Configuration:

  • Web browser and its version: Firefox 52.0.1 (64-bit)
  • Operating system and its version: Linux Mint 18.1 Cinnamon 64-bit
  • PDF.js version: 1.6.315
  • Is an extension: no

Steps to reproduce the problem:

  1. Open the document
  2. Set zoom to 100% or similar and scroll to pages 12, 13, 16, 22.

What is the expected behavior? (add screenshot)

Page 12:
bug1

Page 13:
bug3

Page 16:
bug2

Page 22:
bug4

What went wrong? (add screenshot)

Several mathematical symbols are stretched vertically.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
I'm using the default viewer in Firefox.

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Apr 1, 2017

From the information provided, I believe that this is a duplicate of (the fixed) issue #2594.

PDF.js version: 1.6.315

This issue should already be fixed by PR #7705, but please note that that patch is only included in PDF.js version 1.6.380 and above.

@marozols Please try downloading the file and opening it (using the "Open file" button on the right-hand side of the toolbar) with the latest version of PDF.js, available at https://mozilla.github.io/pdf.js/web/viewer.html. Does your file render correctly there?

@marozols
Copy link
Author

marozols commented Apr 1, 2017

It renders just fine with the latest version of PDF.js. Too bad that Firefox doesn't ship the latest version.

@Snuffleupagus
Copy link
Collaborator

It renders just fine with the latest version of PDF.js.

In that case, I'm closing this as duplicate of issue #2594.

Too bad that Firefox doesn't ship the latest version.

It's included in Firefox 53, since it was part of bug 1323915.

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

No branches or pull requests

3 participants